fixed inline map splats expansion in function calls
This commit is contained in:
1 parent
f6d51e9b94
commit
3dfe98a93d
2 files changed
+15
-2
No files matched your search
@@ -1044,7 +1044,7 @@ class Compiler(
|
||||
}
|
||||
|
||||
Token.Type.ELLIPSIS -> {
|
||||
parseStatement()?.let { args += ParsedArgument(it, t.pos, isSplat = true) }
|
||||
parseExpression()?.let { args += ParsedArgument(it, t.pos, isSplat = true) }
|
||||
?: throw ScriptError(t.pos, "Expecting arguments list")
|
||||
}
|
||||
|
||||
@@ -1110,7 +1110,7 @@ class Compiler(
|
||||
}
|
||||
|
||||
Token.Type.ELLIPSIS -> {
|
||||
parseStatement()?.let { args += ParsedArgument(it, t.pos, isSplat = true) }
|
||||
parseExpression()?.let { args += ParsedArgument(it, t.pos, isSplat = true) }
|
||||
?: throw ScriptError(t.pos, "Expecting arguments list")
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user