mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 15:54:03 +00:00
17 lines
348 B
Kotlin
Vendored
17 lines
348 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
// !CHECK_TYPE
|
|
|
|
import kotlin.reflect.KFunction0
|
|
|
|
fun test() {
|
|
val a = if (true) {
|
|
val x = 1
|
|
"".length
|
|
<!UNRESOLVED_REFERENCE!>::foo<!>
|
|
} else {
|
|
<!UNRESOLVED_REFERENCE!>::foo<!>
|
|
}
|
|
a checkType { <!UNRESOLVED_REFERENCE!>_<!><KFunction0<Int>>() }
|
|
}
|
|
|
|
fun foo(): Int = 0 |