Skip to content

Parentheses around type assertions removed leading to incorrect semantics #441

Description

@JohnnyMorganz
if string.len(string_) > (length :: number) then
    return string_:sub(1, (length :: number) + 1) .. ""
else
    return string_
end

... gets formatted as ...

if string.len(string_) > length :: number then
    return string_:sub(1, length :: number + 1) .. ""
else
    return string_
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions