Skip to content

Instantly share code, notes, and snippets.

@victornoel
Created June 14, 2010 09:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victornoel/437472 to your computer and use it in GitHub Desktop.
Save victornoel/437472 to your computer and use it in GitHub Desktop.
abstract class C {
type T
val r: T
}
object C {
def m(t: C): t.T = t.r
}
class Ex {
val c = new C() {
type T = Int
val r = 4
}
val i = C.m(c)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment