Skip to content

Instantly share code, notes, and snippets.

@puffnfresh
Created March 25, 2014 19:54
Show Gist options
  • Save puffnfresh/9769960 to your computer and use it in GitHub Desktop.
Save puffnfresh/9769960 to your computer and use it in GitHub Desktop.
You won't be able to compile this.
// You won't be able to compile this with:
// scala -language:dynamics NoDynamics.scala
// These two ambiguous implicits disable the `dynamics` feature.
implicit def ambDynamics1: language.dynamics.type = ???
implicit def ambDynamics2: language.dynamics.type = ???
object Woo extends Dynamic {
def selectDynamic(name: String) = s"$name a mess of a language"
}
println(Woo.wat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment