Added deprecated diagnostic for invoking default methods within jvm-target 1.6

This commit is contained in:
Mikhael Bogdanov
2017-01-17 14:10:04 +01:00
parent 7a27a9d51f
commit 591de36666
17 changed files with 446 additions and 14 deletions
+20 -3
View File
@@ -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()
}