Files
2021-03-08 17:52:51 +00:00

18 lines
430 B
Kotlin
Vendored

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
}