Created
July 12, 2013 10:15
-
-
Save erokhins/5983361 to your computer and use it in GitHub Desktop.
C.foo D.foo
This file contains hidden or 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
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