[NI] Testdata changes after fixes in error types
This commit is contained in:
+7
-5
@@ -1,4 +1,6 @@
|
||||
// !WITH_NEW_INFERENCE
|
||||
// See KT-6665: unresolved reference (v.bar) should not produce "unreachable code" after it
|
||||
|
||||
fun foo(): Int {
|
||||
val v = 1
|
||||
val <!UNUSED_VARIABLE!>c<!> = v.<!UNRESOLVED_REFERENCE!>bar<!> ?: return 0
|
||||
@@ -27,14 +29,14 @@ fun foo3(): Int {
|
||||
fun bar(): Int {
|
||||
val v = 1
|
||||
val c = v.<!UNRESOLVED_REFERENCE!>bar<!> ?: 42
|
||||
return c
|
||||
return <!NI;DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>c<!>
|
||||
}
|
||||
|
||||
fun bar2(): Int {
|
||||
val v = 1
|
||||
val c = if (true) v.<!UNRESOLVED_REFERENCE!>bar<!> else 3
|
||||
val b = c
|
||||
return b
|
||||
val b = <!NI;DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>c<!>
|
||||
return <!NI;DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>b<!>
|
||||
}
|
||||
|
||||
fun bar3(): Int {
|
||||
@@ -43,6 +45,6 @@ fun bar3(): Int {
|
||||
true -> v.<!UNRESOLVED_REFERENCE!>bar<!>
|
||||
else -> 3
|
||||
}
|
||||
val b = c
|
||||
return b
|
||||
val b = <!NI;DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>c<!>
|
||||
return <!NI;DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>b<!>
|
||||
}
|
||||
Reference in New Issue
Block a user