[Scripting] fix receiver substitution in script JVM IR lowering

This commit is contained in:
Ilya Chernikov
2021-05-31 12:19:10 +02:00
committed by teamcityserver
parent a7b94b398a
commit 32b6cfe2ea
2 changed files with 17 additions and 7 deletions
@@ -146,6 +146,21 @@ class ReplTest : TestCase() {
)
}
@Test
// TODO: make it covering more cases
fun testIrReceiverOvewrite() {
checkEvaluateInRepl(
sequenceOf(
"fun f(a: String) = a",
"f(\"x\")"
),
sequenceOf(
null,
"x"
)
)
}
@Test
fun testNoEvaluationError() {
checkEvaluateInReplDiags(