Files
kotlin-fork/compiler/testData/codegen/box/properties/twoAnnotatedExtensionPropertiesWithoutBackingFields.kt
T
2019-11-19 11:00:09 +03:00

11 lines
201 B
Kotlin
Vendored

// IGNORE_BACKEND_FIR: JVM_IR
annotation class Anno
@Anno val Int.foo: Int
get() = this
@Anno val String.foo: Int
get() = 42
fun box() = if (42.foo == 42 && "OK".foo == 42) "OK" else "Fail"