[Scripting] fix receiver substitution in script JVM IR lowering
This commit is contained in:
committed by
teamcityserver
parent
a7b94b398a
commit
32b6cfe2ea
+15
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user