Skip to content

Instantly share code, notes, and snippets.

@akiradeveloper
Created September 3, 2015 03:52
Show Gist options
  • Save akiradeveloper/f496ce5edc49084a45f6 to your computer and use it in GitHub Desktop.
Save akiradeveloper/f496ce5edc49084a45f6 to your computer and use it in GitHub Desktop.
こうしたい
class A {
val x = 0
class B {
class C {
def f = x
}
}
}
=>
trait TC { self: A#B =>
class C {
def f = x // but build error
}
}
class A {
val x = 0
class B extends TC {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment