Remove obsolete USAGE_OF_JVM_DEFAULT_THROUGH_SUPER_CALL diagnostic
#KT-47000
This commit is contained in:
-3
@@ -1,7 +1,4 @@
|
||||
compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/source.kt:5:22: error: interfaces can call JVM-default members via super only within JVM-default members. Please use '-Xjvm-default=all/all-compatibility' modes for such calls
|
||||
return super.evaluate()
|
||||
^
|
||||
compiler/testData/compileKotlinAgainstCustomBinaries/jvmDefaultNonDefaultInheritanceSuperCall/source.kt:5:22: error: super calls of '@JvmDefault' members are only allowed with -Xjvm-default option
|
||||
return super.evaluate()
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
|
||||
+7
-1
@@ -1,6 +1,12 @@
|
||||
import base.*
|
||||
|
||||
interface KotlinEvaluatableUElement : UExpression {
|
||||
interface KotlinInterface : UExpression {
|
||||
override fun evaluate(): Any? {
|
||||
return super.evaluate()
|
||||
}
|
||||
}
|
||||
|
||||
class KotlinClass : UExpression {
|
||||
override fun evaluate(): Any? {
|
||||
return super.evaluate()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user