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
foo:IsA("Part") proves that foo is a Part but this code produces this error instead:
localfoo=workspace:FindFirstChild("Foo")
iffooandfoo:IsA("Part") thenprint(foo.Position) -- Roblox LSP Type Checking: "Key `Position` not found in type `Instance`."end
Here it could be inferred that foo IsA Part, this would be an amazing quality of life change, I constantly have to write boilerplate to convince the type checker it will be of the already IsA asserted class in these scenarios.
The text was updated successfully, but these errors were encountered:
foo:IsA("Part")
proves that foo is a Part but this code produces this error instead:Here it could be inferred that foo IsA Part, this would be an amazing quality of life change, I constantly have to write boilerplate to convince the type checker it will be of the already IsA asserted class in these scenarios.
The text was updated successfully, but these errors were encountered: