bcc8802014
Expression will be checked against expected type later. Theoretically, this is not very good, but it aligns with the old inference, plus it helps avoiding multiple type mismatch diagnostics.
8 lines
212 B
Kotlin
Vendored
8 lines
212 B
Kotlin
Vendored
// !WITH_NEW_INFERENCE
|
|
fun foo1(b: Boolean, c: Int) {
|
|
if (b && <!TYPE_MISMATCH!>c<!>) {}
|
|
if (b || <!TYPE_MISMATCH!>c<!>) {}
|
|
if (<!TYPE_MISMATCH!>c<!> && b) {}
|
|
if (<!TYPE_MISMATCH!>c<!> || b) {}
|
|
}
|