FIR: support JVM_DEFAULT_WITH_COMPATIBILITY_* diagnostics (FE 1.0 sync)

This commit is contained in:
Mikhail Glukhikh
2021-12-08 17:44:08 +03:00
committed by TeamCityServer
parent 178290eac3
commit 533e802c8d
14 changed files with 108 additions and 53 deletions
@@ -1,7 +0,0 @@
// !JVM_TARGET: 1.6
@JvmDefaultWithCompatibility
interface A {}
@JvmDefaultWithCompatibility
class B : A {}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !JVM_TARGET: 1.6
<!JVM_DEFAULT_IN_JVM6_TARGET!>@JvmDefaultWithCompatibility<!>
@@ -1,10 +0,0 @@
// !JVM_TARGET: 1.8
// !JVM_DEFAULT_MODE: all
@JvmDefaultWithCompatibility
interface A<T> {
fun test(p: T) {}
}
@JvmDefaultWithCompatibility
class B : A<String> {}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !JVM_TARGET: 1.8
// !JVM_DEFAULT_MODE: all
@@ -1,9 +0,0 @@
// !JVM_TARGET: 1.8
@JvmDefaultWithCompatibility
interface A<T> {
fun test(p: T) {}
}
@JvmDefaultWithCompatibility
class B : A<String> {}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !JVM_TARGET: 1.8
<!JVM_DEFAULT_WITH_COMPATIBILITY_IN_DECLARATION!>@JvmDefaultWithCompatibility<!>