FIR: support JVM_DEFAULT_WITH_COMPATIBILITY_* diagnostics (FE 1.0 sync)
This commit is contained in:
committed by
TeamCityServer
parent
178290eac3
commit
533e802c8d
-7
@@ -1,7 +0,0 @@
|
||||
// !JVM_TARGET: 1.6
|
||||
|
||||
@JvmDefaultWithCompatibility
|
||||
interface A {}
|
||||
|
||||
@JvmDefaultWithCompatibility
|
||||
class B : A {}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !JVM_TARGET: 1.6
|
||||
|
||||
<!JVM_DEFAULT_IN_JVM6_TARGET!>@JvmDefaultWithCompatibility<!>
|
||||
|
||||
-10
@@ -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
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !JVM_TARGET: 1.8
|
||||
// !JVM_DEFAULT_MODE: all
|
||||
|
||||
|
||||
-9
@@ -1,9 +0,0 @@
|
||||
// !JVM_TARGET: 1.8
|
||||
|
||||
@JvmDefaultWithCompatibility
|
||||
interface A<T> {
|
||||
fun test(p: T) {}
|
||||
}
|
||||
|
||||
@JvmDefaultWithCompatibility
|
||||
class B : A<String> {}
|
||||
+1
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// !JVM_TARGET: 1.8
|
||||
|
||||
<!JVM_DEFAULT_WITH_COMPATIBILITY_IN_DECLARATION!>@JvmDefaultWithCompatibility<!>
|
||||
|
||||
Reference in New Issue
Block a user