You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be classified as ambiguous syntax, as the parser will identify workspace.Part.CFrame as a function as we then call it on the following line. full-moon should classify this as ambiguous syntax as the programmer probably wanted to assign workspace.Part.CFrame to myVar and then listen to workspace.Part.Touched, using myVar inside the callback function.
Other linters such as Roblox Studio's linter will give a useful warning message:
And Roblox LSP will suggest to add a semicolon to make the parser identify what you want to do
The text was updated successfully, but these errors were encountered:
In Lua (and Luau) users may write code like the following:
This should be classified as ambiguous syntax, as the parser will identify
workspace.Part.CFrame
as a function as we then call it on the following line. full-moon should classify this as ambiguous syntax as the programmer probably wanted to assignworkspace.Part.CFrame
tomyVar
and then listen toworkspace.Part.Touched
, usingmyVar
inside the callback function.Other linters such as Roblox Studio's linter will give a useful warning message:
And Roblox LSP will suggest to add a semicolon to make the parser identify what you want to do
The text was updated successfully, but these errors were encountered: