Error on 'if' without an 'else' branch when used as an expression
This commit is contained in:
@@ -7,5 +7,5 @@ fun test(a: Boolean, b: Boolean): Int {
|
||||
<!TYPE_MISMATCH!>if (b) {
|
||||
3
|
||||
}<!>
|
||||
} // no error, but must be
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user