Record inner class info for interface and DefaultImpls

This commit is contained in:
Denis Zharkov
2015-09-25 13:59:51 +03:00
parent c1bed7efc7
commit fd0c92e307
13 changed files with 104 additions and 13 deletions

View File

@@ -0,0 +1,5 @@
class B {
static String test(A x) {
return A.DefaultImpls.foo(x);
}
}

View File

@@ -0,0 +1,10 @@
interface A {
fun foo() = "OK"
}
fun box(): String {
val result = B.test(object : A {})
if (result != "OK") return "fail: $result"
return "OK"
}