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