New diagnostic for Java default method call via super in trait
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user