Skip to content

Incorrect removal of semicolons after if-expression causes ambiguous syntax #1010

@Entelogical

Description

@Entelogical

In the following example, when saved, the semicolon will incorrectly be removed

(child :: BasePart).Size = if self._isActivated == false then data.Default.Size else data.Target.Size;
(child :: BasePart).CFrame = if self._isActivated == false then data.Default.CFrame else data.Target.CFrame

which errors with "Ambiguous syntax: this looks like an argument list for a function call, but could also be a start of new statement; use ';' to separate statements"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingluauFormatting related to Luau

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions