Fix ctor param reassignment regression
This commit is contained in:
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())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user