Files
kotlin-fork/backend.native/tests/external/codegen/box/properties/twoAnnotatedExtensionPropertiesWithoutBackingFields.kt
T
2017-03-13 15:31:46 +03:00

10 lines
171 B
Kotlin

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"