Implicit Nothing return type is now deprecated
This commit is contained in:
+1
-1
@@ -8,5 +8,5 @@ fun testIf1(b: Boolean) {
|
||||
bar()
|
||||
}
|
||||
|
||||
fun todo() = throw Exception()
|
||||
fun todo(): Nothing = throw Exception()
|
||||
fun bar() {}
|
||||
Reference in New Issue
Block a user