f34f7556bc
(which doesn't depend on the expected type for expression) #KT-10192 Fixed
20 lines
344 B
Kotlin
Vendored
20 lines
344 B
Kotlin
Vendored
fun test1() {
|
|
if (true) {
|
|
when (true) {
|
|
true -> println()
|
|
}
|
|
} else {
|
|
System.out?.println() // kotlin.Unit?
|
|
}
|
|
}
|
|
|
|
fun test2() {
|
|
val mlist = arrayListOf("")
|
|
if (true) {
|
|
when (true) {
|
|
true -> println()
|
|
}
|
|
} else {
|
|
mlist.add("") // kotlin.Boolean
|
|
}
|
|
} |