Files
kotlin-fork/idea/testData/intentions/branched/ifThenToElvis/conditionNotBinaryExpr.kt
T

16 lines
469 B
Kotlin
Vendored

// IS_APPLICABLE: false
// ERROR: Type mismatch: inferred type is Int but Boolean was expected
// ERROR: Type mismatch: inferred type is Int but Boolean was expected
// ERROR: Infix call corresponds to a dot-qualified call 'foo.times(10)' which is not allowed on a nullable receiver 'foo'. Use '?.'-qualified call instead
fun main(args: Array<String>) {
val foo: Int? = 4
val bar = 3
if (foo * 10<caret>) {
foo
}
else {
bar
}
}