Implicit Nothing return type is now deprecated
This commit is contained in:
+1
-1
@@ -21,4 +21,4 @@ fun unreachable4(array: Array<Any>) {
|
||||
}
|
||||
|
||||
fun bar(a: Any) {}
|
||||
fun todo() = throw Exception()
|
||||
fun todo(): Nothing = throw Exception()
|
||||
|
||||
Reference in New Issue
Block a user