Created
April 16, 2014 08:12
-
-
Save DarkDimius/10830068 to your computer and use it in GitHub Desktop.
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
class A{ | |
class Color{} | |
val o1: {def color:Any} = new {def color: Any = 1 } | |
val o2 = o1.asInstanceOf[{def color: Color}] | |
o2.color | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment