New diagnostic for Java default method call via super in trait

This commit is contained in:
Michael Bogdanov
2015-04-24 12:22:40 +03:00
parent 0854c601b4
commit 39fabda611
13 changed files with 192 additions and 16 deletions
@@ -0,0 +1,24 @@
// FILE: test.kt
public trait Test {
fun test(): String {
return "123";
}
}
trait KTrait : Test {
fun ktest() {
super.test()
test()
}
}
class A : KTrait {
fun b() {
super.test()
test()
}
}