[FIR-TEST] Update some testdata
This commit is contained in:
Vendored
+1
-1
@@ -1,5 +1,5 @@
|
||||
|
||||
fun foo1() = <!INFERENCE_ERROR, INFERENCE_ERROR, INFERENCE_ERROR!>while (b()) {}<!>
|
||||
fun foo1() = while (b()) {}
|
||||
|
||||
fun foo2() = <!UNRESOLVED_REFERENCE, UNRESOLVED_REFERENCE, UNRESOLVED_REFERENCE!>for (i in 10) {}<!>
|
||||
|
||||
|
||||
compiler/testData/diagnostics/tests/controlStructures/kt770.fir.kt351.fir.kt735_StatementType.fir.kt
Vendored
+5
-5
@@ -15,7 +15,7 @@ fun main() {
|
||||
}
|
||||
|
||||
//KT-351 Distinguish statement and expression positions
|
||||
val w = <!INFERENCE_ERROR, INFERENCE_ERROR, INFERENCE_ERROR!>while (true) {}<!>
|
||||
val w = while (true) {}
|
||||
|
||||
fun foo() {
|
||||
var z = 2
|
||||
@@ -152,12 +152,12 @@ fun bar(a: Unit) {}
|
||||
|
||||
fun testStatementInExpressionContext() {
|
||||
var z = 34
|
||||
val a1: Unit = <!INFERENCE_ERROR!>z = 334<!>
|
||||
val a1: Unit = z = 334
|
||||
val f = for (i in 1..10) {}
|
||||
if (true) return <!INFERENCE_ERROR, INFERENCE_ERROR!>z = 34<!>
|
||||
return <!INFERENCE_ERROR, INFERENCE_ERROR!>while (true) {}<!>
|
||||
if (true) return z = 34
|
||||
return while (true) {}
|
||||
}
|
||||
|
||||
fun testStatementInExpressionContext2() {
|
||||
val a2: Unit = <!INFERENCE_ERROR!>while(true) {}<!>
|
||||
val a2: Unit = while(true) {}
|
||||
}
|
||||
Reference in New Issue
Block a user