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

buffer library TypeError when buffer is function parameter with new solver's non-strict mode #1279

Open
Ketasaja opened this issue Jun 1, 2024 · 0 comments
Labels
bug Something isn't working new solver This issue is specific to the new solver.

Comments

@Ketasaja
Copy link

Ketasaja commented Jun 1, 2024

Tested on 0.628, with no errors in strict mode:

local function _(b: buffer) -- TypeError: Argument b with type 'unknown' in function '_' is used in a way that will run time error
	buffer.readi32(b, 0)
end

local buf = buffer.create(100)
buffer.readi32(buf, 0)
@Ketasaja Ketasaja added the bug Something isn't working label Jun 1, 2024
@alexmccord alexmccord added the new solver This issue is specific to the new solver. label Jun 1, 2024
@Ketasaja Ketasaja changed the title buffer library TypeError when buffer is function parameter with new solver buffer library TypeError when buffer is function parameter with new solver's non-strict mode Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new solver This issue is specific to the new solver.
Development

No branches or pull requests

2 participants