Closed cursive-ide closed 6 years ago
While testing the multi-change-bug branch, I found the following problem. I reformatted this:
multi-change-bug
{:a {:b (Integer/valueOf (-> "" (.length)))}}
expecting to get this:
However parinfer breaks this code to look like this:
{:a {:b (Integer/valueOf (-> "") (.length))}}
Sandbox repro code:
const code = ` {:a {:b (Integer/valueOf (-> "" (.length)))}} `; console.log(parinfer.smartMode(code, { changes: [ {lineNo:1, x:4, oldText: ' ', newText: ''}, {lineNo:1, x:8, oldText: ' ', newText: ''}, {lineNo:2, x:29, oldText: ' ', newText: ''}, ], }).text);
fixed by #181
While testing the
multi-change-bug
branch, I found the following problem. I reformatted this:expecting to get this:
However parinfer breaks this code to look like this:
Sandbox repro code: