Fix interpreter tests after changing offset calculation

This commit is contained in:
Ilya Chernikov
2022-03-14 15:43:37 +01:00
committed by teamcity
parent 738c1f34df
commit 53bc593062
71 changed files with 359 additions and 355 deletions
+9 -9
View File
@@ -13,23 +13,23 @@ fun <T> echo(value: T): T = value
const val a = <!EVALUATED: `Run block`!>run { echo("Run block") }<!>
const val b = A(0, "Run with receiver").<!EVALUATED: `Run with receiver0`!>run { this.str + this.num }<!>
const val b = <!EVALUATED: `Run with receiver0`!>A(0, "Run with receiver").run { this.str + this.num }<!>
const val c = <!EVALUATED: `New String`!>with (A(1, "String")) {
setNewStr("New String")
this.str
}<!>
const val d = A(2, "Apply test").apply { this.setNewStr("New apply str") }.<!EVALUATED: `New apply str`!>str<!>
const val d = <!EVALUATED: `New apply str`!>A(2, "Apply test").apply { this.setNewStr("New apply str") }.str<!>
const val e = mutableListOf("one", "two", "three").also { it.add("four") }.<!EVALUATED: `4`!>size<!>
const val f1 = mutableListOf("one", "two", "three").<!EVALUATED: `4`!>let {
const val e = <!EVALUATED: `4`!>mutableListOf("one", "two", "three").also { it.add("four") }.size<!>
const val f1 = <!EVALUATED: `4`!>mutableListOf("one", "two", "three").let {
it.add("four")
it.size
}<!>
const val f2 = 10.<!EVALUATED: `20`!>let { it + 10 }<!>
const val f2 = <!EVALUATED: `20`!>10.let { it + 10 }<!>
const val g1 = 1.takeIf { it % 2 == 0 }.<!EVALUATED: `null`!>toString()<!>
const val g2 = 2.takeIf { it % 2 == 0 }.<!EVALUATED: `2`!>toString()<!>
const val h1 = (-1).takeUnless { it > 0 }.<!EVALUATED: `-1`!>toString()<!>
const val h2 = 1.takeUnless { it > 0 }.<!EVALUATED: `null`!>toString()<!>
const val g1 = <!EVALUATED: `null`!>1.takeIf { it % 2 == 0 }.toString()<!>
const val g2 = <!EVALUATED: `2`!>2.takeIf { it % 2 == 0 }.toString()<!>
const val h1 = <!EVALUATED: `-1`!>(-1).takeUnless { it > 0 }.toString()<!>
const val h2 = <!EVALUATED: `null`!>1.takeUnless { it > 0 }.toString()<!>