Skip to content

Instantly share code, notes, and snippets.

@erokhins
Created July 12, 2013 10:15
Show Gist options
  • Save erokhins/5983361 to your computer and use it in GitHub Desktop.
Save erokhins/5983361 to your computer and use it in GitHub Desktop.
C.foo D.foo
open class A {
val c1 = 1
}
class B: A() {
val c2 = 2
}
open class C
open class D: C()
fun C.foo(f: A.() -> Unit) {}
fun D.foo(f: B.() -> Unit) {}
fun test() {
D().foo {
c1
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment