Fix checker for -Xjvm-defaults
This commit is contained in:
Vendored
+17
@@ -0,0 +1,17 @@
|
||||
import base.*
|
||||
|
||||
interface KotlinEvaluatableUElement : UExpression {
|
||||
override fun evaluate(): Any? {
|
||||
return "OK"
|
||||
}
|
||||
}
|
||||
|
||||
abstract class KotlinAbstractUExpression() : UExpression {}
|
||||
|
||||
@JvmDefaultWithoutCompatibility
|
||||
class KotlinUBinaryExpressionWithType : KotlinAbstractUExpression(), KotlinEvaluatableUElement {}
|
||||
|
||||
fun box(): String {
|
||||
val foo = KotlinUBinaryExpressionWithType()
|
||||
return foo.evaluate() as String
|
||||
}
|
||||
Reference in New Issue
Block a user