1a3a296827
regardless of expected type: it can't be an expression, even of type Unit. #KT-10139 Fixed
11 lines
187 B
Kotlin
Vendored
11 lines
187 B
Kotlin
Vendored
package f
|
|
|
|
fun test(a: Boolean, b: Boolean): Int {
|
|
return if(a) {
|
|
1
|
|
} else {
|
|
<!TYPE_MISMATCH, INVALID_IF_AS_EXPRESSION!>if (b) {
|
|
3
|
|
}<!>
|
|
}
|
|
} |