Executing this code in blocks will crash the simulator:
foo = [[]]
(blocks implementation)
Is there a solution at the moment? I found a workaround but it’s janky and this method is just clean. Thanks in advance
Executing this code in blocks will crash the simulator:
foo = [[]]
(blocks implementation)
Is there a solution at the moment? I found a workaround but it’s janky and this method is just clean. Thanks in advance
What does the error actually say?
Type 'undefined[][]' is not assignable to type 'number[]'.
Type 'undefined[]' is not assignable to type 'number'.
it should infer the typing once you start using it (e.g. pushing elements into it)
this is still a bug though; thanks for reporting!