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