Update test affected by SafeCallsAreAlwaysNullable feature

This commit is contained in:
Mikhael Bogdanov
2021-06-30 15:45:45 +02:00
parent c8094f7439
commit c9c82ab3a6
14 changed files with 43 additions and 7 deletions
+1 -1
View File
@@ -5,4 +5,4 @@ object Test {
val a = "OK"
}
fun box(): String = Test?.a
fun box(): String? = Test?.a
@@ -3,4 +3,4 @@ fun test(s: String) = s?.length
// 0 IFNULL
// 0 IFNONNULL
// 0 intValue
// 0 valueOf
// 1 valueOf
@@ -1,5 +1,4 @@
// !API_VERSION: LATEST_STABLE
// !LANGUAGE: -SafeCallsAreAlwaysNullable
fun test(s: String) = s?.length
// 0 IFNULL