Created
March 25, 2014 19:54
-
-
Save puffnfresh/9769960 to your computer and use it in GitHub Desktop.
You won't be able to compile this.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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