Fix ctor param reassignment regression

This commit is contained in:
sergeych committed 2026-01-25 12:35:36 +03:00
1 parent 96947aac50
commit a4f41f17bf
4 files changed
+129 -1

No files matched your search

@@ -5035,5 +5035,13 @@ class ScriptTest {
assertEquals(10.0, 15.5.clamp(0.0..10.0))
""".trimIndent())
}
@Test
fun testEmptySpreadList() = runTest {
eval("""
fun t(a, tags=[]) { [a, ...tags] }
assertEquals( [1], t(1) )
""".trimIndent())
}
}