JVM IR: Avoid direct invokes in callable reference tests

Due to the direct invoke optimization, most callable reference tests
were not generating callable references/lambdas.
This commit is contained in:
Steven Schäfer
2022-06-13 14:49:49 +02:00
committed by Alexander Udalov
parent f0238766df
commit 7d59c7689c
123 changed files with 216 additions and 208 deletions
@@ -67,7 +67,7 @@ private fun testDelegateStr() {
localD = 1234
if (localD != 1234) throw AssertionError()
if (backing != 1234) throw AssertionError()
}()
}.let { it() }
}
private fun testDelegateInt() {
@@ -79,7 +79,7 @@ private fun testDelegateInt() {
localD = 1234
if (localD != 1234) throw AssertionError()
if (backing != 1234) throw AssertionError()
}()
}.let { it() }
}
private fun testDelegateLong() {
@@ -91,5 +91,5 @@ private fun testDelegateLong() {
localD = 1234
if (localD != 1234) throw AssertionError()
if (backing != 1234) throw AssertionError()
}()
}.let { it() }
}
@@ -67,7 +67,7 @@ private fun testDelegateStr() {
localD = 1234
if (localD != 1234) throw AssertionError()
if (backing != 1234) throw AssertionError()
}()
}.let { it() }
}
private fun testDelegateInt() {
@@ -79,7 +79,7 @@ private fun testDelegateInt() {
localD = 1234
if (localD != 1234) throw AssertionError()
if (backing != 1234) throw AssertionError()
}()
}.let { it() }
}
private fun testDelegateLong() {
@@ -91,5 +91,5 @@ private fun testDelegateLong() {
localD = 1234
if (localD != 1234) throw AssertionError()
if (backing != 1234) throw AssertionError()
}()
}.let { it() }
}