Skip to content

LocalShadow lint can be triggered by type functions referencing a defined type #2087

@gaymeowing

Description

@gaymeowing
type num = number

type function GetNum()
	return num
end

-- LocalShadow: Variable 'num' shadows a global variable used at line 4 Luau(4)
local num = 10
num += 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions