Implicit Nothing return type is now deprecated
This commit is contained in:
+1
-1
@@ -45,4 +45,4 @@ fun test4() {
|
||||
}
|
||||
}
|
||||
|
||||
fun fail() = throw Exception()
|
||||
fun fail(): Nothing = throw Exception()
|
||||
Reference in New Issue
Block a user