mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 15:53:37 +00:00
10 lines
158 B
Kotlin
10 lines
158 B
Kotlin
// !CHECK_TYPE
|
|
fun test() {
|
|
val a = if (true) {
|
|
val x = 1
|
|
({ x })
|
|
} else {
|
|
{ 2 }
|
|
}
|
|
a checkType { it : _<() -> Int> }
|
|
} |