Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@as Problem #1228

Closed
Sedas25 opened this issue Jun 22, 2022 · 1 comment
Closed

@as Problem #1228

Sedas25 opened this issue Jun 22, 2022 · 1 comment
Labels
bug Something isn't working
Milestone

Comments

@Sedas25
Copy link

Sedas25 commented Jun 22, 2022

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
@sumneko sumneko added the bug Something isn't working label Jun 22, 2022
@sumneko sumneko added this to the 3.4.0 milestone Jun 22, 2022
@sumneko
Copy link
Collaborator

sumneko commented Jun 22, 2022

Spaces are not allowed as designed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants