Implicit Nothing return type is now deprecated
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
fun a(): IntArray? = null
|
||||
|
||||
fun b() = throw Exception()
|
||||
fun b(): Nothing = throw Exception()
|
||||
|
||||
fun foo(): IntArray = a() ?: b()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user