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:
committed by
Alexander Udalov
parent
f0238766df
commit
7d59c7689c
+3
-3
@@ -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() }
|
||||
}
|
||||
+3
-3
@@ -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() }
|
||||
}
|
||||
Reference in New Issue
Block a user