Error on 'if' without an 'else' branch when used as an expression
This commit is contained in:
+1
-5
@@ -2,10 +2,6 @@ fun foo() {
|
||||
if (0 < 1) {
|
||||
return
|
||||
}
|
||||
|
||||
val u: Unit = if (0 < 1) {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
// 2 3 6 7 6 9
|
||||
// 2 3 5
|
||||
|
||||
Reference in New Issue
Block a user