Skip to content

Unnecessary extra semicolons introduced for functions #963

@JohnnyMorganz

Description

@JohnnyMorganz
local value = nil

(Foo :: any):Call()

local tbl = {}

(Foo :: any):Call()

... will add semicolons unnecessarily, leading to ...

local value = nil;

(Foo :: any):Call()

local tbl = {};

(Foo :: any):Call()

We don't need to add semicolons here, as they are not ambiguous statements. We would only need a semicolon if nil and {} were instead an identifier.

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