Skip to content

CompilerException java.lang.IllegalArgumentException: Cannot assign to non-mutable: arr, compiling:(/tmp/form-ini t5808431659426138425.clj:1:144) #1

@zaoqi

Description

@zaoqi
__TS__ArrayPush = function(arr, ...)
    local items = ({...});
    for ____TS_index = 1, #items do
        local item = items[____TS_index];
        arr[(#arr) + 1] = item;
    end
    return #arr;
end;

local x={};
__TS__ArrayPush(x,0);
return x;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions