Files
kotlin-fork/compiler/testData/codegen/box/package/referenceWithTheSameNameAsPackage.kt
T
Alexander Udalov 1071919706 Remove backend tests on old inference
Also remove any mentions of NewInference, and rename some tests.
2021-11-09 20:07:33 +01:00

22 lines
322 B
Kotlin
Vendored

// WITH_RUNTIME
// FILE: messages/foo.kt
package messages
fun foo() {}
// FILE: sample.kt
class Test {
val messages = arrayListOf<String>()
fun test(): Boolean {
return messages.any { it == "foo" }
}
}
fun box(): String {
val result = Test().test()
return if (result) "faile" else "OK"
}