Fix tests in DiagnosticsTestWithStdLibGenerated with NI
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// !IGNORE_DATA_FLOW_IN_ASSERT
|
||||
// SKIP_TXT
|
||||
// WITH_RUNTIME
|
||||
@@ -10,11 +11,11 @@ class B: A {
|
||||
|
||||
fun test1(a: A) {
|
||||
assert((a as B).bool())
|
||||
a.<!UNRESOLVED_REFERENCE!>bool<!>()
|
||||
<!NI;DEBUG_INFO_SMARTCAST!>a<!>.<!OI;UNRESOLVED_REFERENCE!>bool<!>()
|
||||
}
|
||||
|
||||
fun test2() {
|
||||
val a: A? = null;
|
||||
assert((a as B).bool())
|
||||
a?.<!UNRESOLVED_REFERENCE!>bool<!>()
|
||||
<!NI;DEBUG_INFO_SMARTCAST!>a<!><!NI;UNNECESSARY_SAFE_CALL!>?.<!><!OI;UNRESOLVED_REFERENCE!>bool<!>()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user