Open aspeddro opened 1 year ago
let andd = [1, 2, 3] andd[0]->Js.log andd[1]->Js.log
Playground
(source_file [0, 0] - [4, 0] (ERROR [0, 0] - [3, 15] (let_binding [0, 4] - [0, 20] pattern: (value_identifier [0, 4] - [0, 8]) body: (array [0, 11] - [0, 20] (number [0, 12] - [0, 13]) (number [0, 15] - [0, 16]) (number [0, 18] - [0, 19]))) (ERROR [2, 3] - [3, 9] (value_identifier [2, 3] - [2, 4]) (array_pattern [2, 4] - [2, 7] (number [2, 5] - [2, 6])) (module_identifier [2, 9] - [2, 11]) (ERROR [3, 3] - [3, 4]) (array_pattern [3, 4] - [3, 7] (number [3, 5] - [3, 6]))) (module_identifier [3, 9] - [3, 11])))
This looks like the same issue I have:
let and_ = (a, b) => (a, b) let fn = () => { let x = 1 and_(x, 2)->and_(3) }
Playground