Require 'jvmDefaultFlag' for default super calls

This commit is contained in:
Mikhael Bogdanov
2018-04-03 15:48:06 +02:00
parent db59e916fb
commit 2c56f0bfd3
17 changed files with 328 additions and 26 deletions
@@ -0,0 +1,22 @@
// !JVM_TARGET: 1.8
interface A {
<!JVM_DEFAULT_IN_DECLARATION!>@JvmDefault
fun test()<!>
}
interface B{
fun test() {
}
}
class <!JVM_DEFAULT_THROUGH_INHERITANCE!>C<!> : A, B {
override fun test() {
super<B>.test()
}
}
class <!JVM_DEFAULT_THROUGH_INHERITANCE!>D<!> : B, A {
override fun test() {
super<B>.test()
}
}