diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/32.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/32.kt index 0acc3cf23e4..c17b97b8b40 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/32.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/32.kt @@ -46,8 +46,8 @@ fun case_2(x: Int?, y: Nothing?) { fun case_3(x: Int?) { if (x == null) { x as Int - stringArg(x) - x + stringArg(x) + x } } @@ -59,7 +59,7 @@ fun case_3(x: Int?) { fun case_4(x: Int?) { if (x == null) { x!! - stringArg(x) + stringArg(x) x } } @@ -73,7 +73,7 @@ fun case_5(x: Int?) { if (x == null) { var y = x y!! - stringArg(y) + stringArg(y) y } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/32.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/32.kt index 37d2a387e67..22537de04d1 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/32.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/32.kt @@ -15,7 +15,7 @@ fun case_1(x: T?, y: K?) { x as T y as K - val z = x ?: y + val z = x ?: y x.equals(10) z diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/40.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/40.kt index a12fd20d35e..4b54103bae4 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/40.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/40.kt @@ -56,11 +56,14 @@ fun case_5(x: Any?) { } } -// TESTCASE NUMBER: 6 +/* + * TESTCASE NUMBER: 6 + * UNEXPECTED BEHAVIOUR + */ fun case_6(x: Any?) { if (x is Boolean? && x!!) { - x.not() - select(x).not() + x.not() + select(x).not() } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/5.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/5.kt index 418abfe7b11..70945af5c2f 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/5.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/5.kt @@ -361,7 +361,7 @@ fun case_15(x: Any?) { } // TESTCASE NUMBER: 16 -fun case_16(a: Any?, b: Int = if (a is Number? && a is Int? && a !== null) a else 0) { +fun case_16(a: Any?, b: Int = if (a is Number? && a is Int? && a !== null) a else 0) { a b b.equals(null) @@ -376,7 +376,7 @@ fun case_16(a: Any?, b: Int = if (a is Number? && a is Int? && a !== null) a) { +fun case_17(a: Any?, b: Int = if (a !is Number? || a !is Int? || a == null) 0 else a) { a b b.equals(null) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/55.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/55.kt index 81e4a51a49f..a31bfd36279 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/55.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/55.kt @@ -29,7 +29,7 @@ fun case_1(x: Any) { fun case_2(x: Any?) { if (x is String?) { x!!.length - x + x } } @@ -51,6 +51,6 @@ fun case_3(x: Any) { fun case_4(x: Any?) { if (x is Map.Entry<*, *>?) { ")!>x!!.value - ")!>x + ?")!>x } } \ No newline at end of file diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/6.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/6.kt index 64e9665b951..80737617752 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/6.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/6.kt @@ -1375,14 +1375,14 @@ fun case_75(t: Any?, z: Nothing?) { t.itest() t.test1() t.test2() - t + t } } } } // TESTCASE NUMBER: 76 -fun case_76(a: Any?, b: Int = if (a !is Number? === true || a !is Int? == true || a != null == false == true) 0 else a) { +fun case_76(a: Any?, b: Int = if (a !is Number? === true || a !is Int? == true || a != null == false == true) 0 else a) { a b b.equals(null)