Files
kotlin-fork/backend.native/tests/external/codegen/blackbox/properties/twoAnnotatedExtensionPropertiesWithoutBackingFields.kt
T
Ilya Matveev 1b553ebfaf backend/tests: Add blackbox tests from Kotlin JVM
Added tests from testData/codegen/box directory. There are blackbox tests
in other directories and they are to be added.
2017-01-20 14:04:04 +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"