Files
kotlin-fork/compiler/testData/codegen/box/properties/twoAnnotatedExtensionPropertiesWithoutBackingFields.kt
T

10 lines
171 B
Kotlin
Vendored

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"