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

Incorrect RunService type errors #261

Closed
ArchLand64 opened this issue Jan 10, 2023 · 2 comments
Closed

Incorrect RunService type errors #261

ArchLand64 opened this issue Jan 10, 2023 · 2 comments

Comments

@ArchLand64
Copy link

I am getting incorrect type errors for the following code:

game:GetService("RunService").Stepped:Connect(function(currTime, deltaTime)
	local e1 = currTime + 1
	local e2 = deltaTime + 1
end)

image

This problem affects the other RunService events and also happens in Roblox Studio.

@JohnnyMorganz
Copy link
Owner

This is related to #83 (comment)

For the diagnostics type checker, game is typed as any, so this leads to deltaTime being typed as any, so it doesn't know the correct type annotation

@JohnnyMorganz
Copy link
Owner

Closing as there are no solution for now

@JohnnyMorganz JohnnyMorganz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants