mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-16 15:53:55 +00:00
11 lines
268 B
Kotlin
Vendored
11 lines
268 B
Kotlin
Vendored
|
|
fun foo1() = <!INFERENCE_ERROR, INFERENCE_ERROR, INFERENCE_ERROR!>while (b()) {}<!>
|
|
|
|
fun foo2() = <!UNRESOLVED_REFERENCE, UNRESOLVED_REFERENCE, UNRESOLVED_REFERENCE!>for (i in 10) {}<!>
|
|
|
|
fun foo3() = when (b()) {
|
|
true -> 1
|
|
else -> 0
|
|
}
|
|
|
|
fun b(): Boolean = true |