Implicit Nothing return type is now deprecated
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@ package kotlin
|
||||
// This file should be excluded from tests using StdLib, as these methods conflict with corresponding methods from kotlin.test
|
||||
// see StdLibTestBase.removeAdHocAssertions
|
||||
|
||||
fun fail(message: String? = null) = throw Exception(message)
|
||||
fun fail(message: String? = null): Nothing = throw Exception(message)
|
||||
|
||||
fun assertEquals<T>(expected: T, actual: T, message: String? = null) {
|
||||
if (expected != actual) {
|
||||
|
||||
Reference in New Issue
Block a user