Files
kotlin-fork/compiler/testData/diagnostics/tests/nullabilityAndSmartCasts/smartCastsAndBooleanExpressions.fir.kt
T

9 lines
164 B
Kotlin
Vendored

fun foo(b: Boolean?, c: Boolean) {
if (b != null && b) {}
if (b == null || b) {}
if (b != null) {
if (b && c) {}
if (b || c) {}
}
}