Test that local return has type Nothing
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
fun test() {
|
||||
run1 @f{(): Int ->
|
||||
(return@f 1): Nothing
|
||||
}
|
||||
}
|
||||
|
||||
fun run1<T>(f: () -> T): T { return f() }
|
||||
Reference in New Issue
Block a user