Implicit Nothing return type is now deprecated
This commit is contained in:
+1
-1
@@ -8,4 +8,4 @@ fun testInvokeWithLambda() {
|
||||
todo()<!UNREACHABLE_CODE!>(1){ 42 }<!>
|
||||
}
|
||||
|
||||
fun todo() = throw Exception()
|
||||
fun todo(): Nothing = throw Exception()
|
||||
Reference in New Issue
Block a user