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

[lua] Rest from Array doesn't work properly #10909

Open
ilevd opened this issue Dec 28, 2022 · 0 comments
Open

[lua] Rest from Array doesn't work properly #10909

ilevd opened this issue Dec 28, 2022 · 0 comments
Milestone

Comments

@ilevd
Copy link

ilevd commented Dec 28, 2022

If there is null in array, then Rest becomes broken in Lua:

    var arr:Array<Any> = [1, 2, 3, null, 5];
    var r:Rest<Any> = Rest.of(arr);
    trace(arr, r); // [1,2,3,null,5], [1,2,3,null,null]
--lua main.lua
@Simn Simn added this to the Later milestone Mar 24, 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