1071919706
Also remove any mentions of NewInference, and rename some tests.
22 lines
322 B
Kotlin
Vendored
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"
|
|
}
|