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