Skip to content

Instantly share code, notes, and snippets.

@DarkDimius
Created April 16, 2014 08:12
Show Gist options
  • Save DarkDimius/10830068 to your computer and use it in GitHub Desktop.
Save DarkDimius/10830068 to your computer and use it in GitHub Desktop.
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