Skip to content

is handles type aliases of integer incorrectly and nil inconsistently #1149

Description

@purplesyringa
local x = nil

print(x is integer) -- lowers to math.type(x) == "integer"
print(x is nil) -- lowers to x == nil

local type A = integer
print(x is A) -- lowers to type(x) == "number"
local type B = nil
print(x is B) -- lowers to type(x) == "nil"

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