Skip to content

@as Problem #1228

@Sedas25

Description

@Sedas25

Here is a little problem with the @as

local x = true
local y = x--[[@as integer]] --is `integer` here
local z = x--[[@as string]] --is `true` here
local x = true
local y = x --[[@as integer]] --is `boolean` here because of the space character
local x = true
local y = x--[[@as integer]] --is `integer` here
local z = x--[[@as string]] --is `true` here
local z = x--[[@as string]] --is `string` here

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions