Error on 'if' without an 'else' branch when used as an expression
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
||||
val flag = true
|
||||
|
||||
// type of a was checked by txt
|
||||
val a/*: () -> Any*/ = l@ { // commonSupertype(Int, Unit) = Any
|
||||
val a/*: () -> Any*/ = l@ {
|
||||
if (flag) return@l 4
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user