[FIR-TEST] Update some testdata

This commit is contained in:
Dmitriy Novozhilov
2020-02-07 12:51:44 +03:00
parent 4b6c2f7a65
commit 5ceb68f19f
16 changed files with 52 additions and 51 deletions
@@ -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) {}<!>
@@ -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) {}
}