From a8cd8ad8f885571a4fab1aeda2303d379582154d Mon Sep 17 00:00:00 2001 From: "simon.ogorodnik" Date: Tue, 16 Jun 2020 21:53:23 +0300 Subject: [PATCH] [FIR] Fix testData after changing anonymous object name --- .../diagnostics/notLinked/dfa/neg/1.fir.kt | 22 ++++++------ .../diagnostics/notLinked/dfa/pos/1.fir.kt | 22 ++++++------ .../diagnostics/notLinked/dfa/pos/2.fir.kt | 36 +++++++++---------- .../diagnostics/notLinked/dfa/pos/3.fir.kt | 4 +-- .../diagnostics/notLinked/dfa/pos/4.fir.kt | 4 +-- 5 files changed, 44 insertions(+), 44 deletions(-) diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/1.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/1.fir.kt index 947ac41eb9d..b8f49568e01 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/1.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/neg/1.fir.kt @@ -420,19 +420,19 @@ fun case_25(b: Boolean) { val y = if (b) x else null if (y !== null === true) { - val z = y() + val z = ?")!>y() if (z != null !== false) { - z.a - z.a.equals(null) - z.a.propT - z.a.propAny - z.a.propNullableT - z.a.propNullableAny - z.a.funT() - z.a.funAny() - z.a.funNullableT() - z.a.funNullableAny() + & ?")!>z.a + & ?")!>z.a.equals(null) + & ?")!>z.a.propT + & ?")!>z.a.propAny + & ?")!>z.a.propNullableT + & ?")!>z.a.propNullableAny + & ?")!>z.a.funT() + & ?")!>z.a.funAny() + & ?")!>z.a.funNullableT() + & ?")!>z.a.funNullableAny() } } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.fir.kt index 821d7e7aab1..afdbf4eb800 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/1.fir.kt @@ -485,19 +485,19 @@ fun case_25(b: Boolean) { val y = if (b) x else null if (y !== null) { - val z = y() + val z = ?")!>y() if (z != null) { - z.a - z.a.equals(null) - z.a.propT - z.a.propAny - z.a.propNullableT - z.a.propNullableAny - z.a.funT() - z.a.funAny() - z.a.funNullableT() - z.a.funNullableAny() + & ?")!>z.a + & ?")!>z.a.equals(null) + & ?")!>z.a.propT + & ?")!>z.a.propAny + & ?")!>z.a.propNullableT + & ?")!>z.a.propNullableAny + & ?")!>z.a.funT() + & ?")!>z.a.funAny() + & ?")!>z.a.funNullableT() + & ?")!>z.a.funNullableAny() } } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/2.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/2.fir.kt index e173cf04fe7..2faba557ee0 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/2.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/2.fir.kt @@ -68,15 +68,15 @@ fun case_3(b: Boolean) { if (false || false || false || false || y !== null) { val z = y() - ?")!>y.equals(null) - ?")!>y.propT - ?")!>y.propAny - ?")!>y.propNullableT - ?")!>y.propNullableAny - ?")!>y.funT() - ?")!>y.funAny() - ?")!>y.funNullableT() - ?")!>y.funNullableAny() + ?>?")!>y.equals(null) + ?>?")!>y.propT + ?>?")!>y.propAny + ?>?")!>y.propNullableT + ?>?")!>y.propNullableAny + ?>?")!>y.funT() + ?>?")!>y.funAny() + ?>?")!>y.funNullableT() + ?>?")!>y.funNullableAny() if (z != null || false) { z.a @@ -275,15 +275,15 @@ fun case_11(b: Boolean) { if (y === null && true) else { val z = y() - ?")!>y.equals(null) - ?")!>y.propT - ?")!>y.propAny - ?")!>y.propNullableT - ?")!>y.propNullableAny - ?")!>y.funT() - ?")!>y.funAny() - ?")!>y.funNullableT() - ?")!>y.funNullableAny() + ?>?")!>y.equals(null) + ?>?")!>y.propT + ?>?")!>y.propAny + ?>?")!>y.propNullableT + ?>?")!>y.propNullableAny + ?>?")!>y.funT() + ?>?")!>y.funAny() + ?>?")!>y.funNullableT() + ?>?")!>y.funNullableAny() if (z != null || b) { diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/3.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/3.fir.kt index 121bc7a3a29..64b2dd1929c 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/3.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/3.fir.kt @@ -287,10 +287,10 @@ fun case_25(b: Boolean) { val y = if (b) x else null if (y != null) { - val z = y() + val z = ?")!>y() if (z == null) { - z + ?")!>z } } } diff --git a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/4.fir.kt b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/4.fir.kt index 2ee6c9c0aab..8f587d178ee 100644 --- a/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/4.fir.kt +++ b/compiler/tests-spec/testData/diagnostics/notLinked/dfa/pos/4.fir.kt @@ -63,8 +63,8 @@ fun case_6(x: EmptyClass) { // TESTCASE NUMBER: 7 fun case_7() { - if (anonymousTypeProperty == null || anonymousTypeProperty == null) { - anonymousTypeProperty + if (anonymousTypeProperty == null || & ")!>anonymousTypeProperty == null) { + ")!>anonymousTypeProperty } }