2ecba6ac39
This directive anyway does not make test run twice with OI, and with NI It only once run the test with specific settings (// LANGUAGE) and ignores irrelevant (OI or NI tags)
15 lines
271 B
Kotlin
Vendored
15 lines
271 B
Kotlin
Vendored
fun trans(n: Int, f: () -> Boolean) = if (f()) n else null
|
|
|
|
fun foo() {
|
|
var i: Int? = 5
|
|
if (i != null) {
|
|
fun can(): Boolean {
|
|
i = null
|
|
return true
|
|
}
|
|
i.hashCode()
|
|
trans(i, ::can)
|
|
i.hashCode()
|
|
}
|
|
}
|