Added deprecated diagnostic for invoking default methods within jvm-target 1.6
This commit is contained in:
+20
-3
@@ -15,9 +15,26 @@ interface KTrait : Test {
|
||||
}
|
||||
|
||||
|
||||
class A : KTrait {
|
||||
fun a() {
|
||||
super.test()
|
||||
interface KTrait2 : KTrait {
|
||||
fun ktest2() {
|
||||
super.<!INTERFACE_CANT_CALL_DEFAULT_METHOD_VIA_SUPER!>test<!>()
|
||||
|
||||
test()
|
||||
}
|
||||
}
|
||||
|
||||
class A : KTrait {
|
||||
fun a() {
|
||||
super.<!DEFAULT_METHOD_CALL_FROM_JAVA6_TARGET!>test<!>()
|
||||
|
||||
test()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
class A2 : KTrait2 {
|
||||
fun a() {
|
||||
super.<!DEFAULT_METHOD_CALL_FROM_JAVA6_TARGET!>test<!>()
|
||||
|
||||
test()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user