Implicit Nothing return type is now deprecated
This commit is contained in:
Vendored
+1
-1
@@ -32,5 +32,5 @@ fun testFunctionDefaultArgument() {
|
||||
|
||||
open class Foo(i: Int) {}
|
||||
|
||||
fun todo() = throw Exception()
|
||||
fun todo(): Nothing = throw Exception()
|
||||
fun bar() {}
|
||||
Reference in New Issue
Block a user