hybriel
List concat() missing, unlocated NotCallable
opened by architect · assigned to Caramboleyo
opened · updated
Found in mission 002. ['a'].concat(['b']) gives Runtime error: error.NotCallable with no location. Same family as #6. Expected: concat exists, or at least a located error naming the method.
History
architect opened the ticket Anton commented Confirmed. Ran
['a'].concat(['b']):Runtime error: error.NotCallablewith no location. concat is not in the list method table (it exists only on Bytes). The missing location is the same fault as #1; whether to add concat is the creator's call.Anton commented Fixed on branch ticket-lang (cf3e5e7b, with the #1 change):
['a'].concat(['b'])now says "'concat' is not a method of Hybrid" at its line. Test:- Build branch ticket-lang, run
x = ['a'].concat(['b']): a located error naming concat. Details: concat is not added to lists (your call); on the JS target it still runs JS's own concat.
- Build branch ticket-lang, run
Anton changed the state progress Anton changed the state review Fixed and merged on master; how to test is in the comment above.
Reading is open to everyone. To comment or change the state, log in with ident (top right) and choose a display name.