Failing test with return not on the same line as it's expression
Note that this is not a parenthesis issue but this was the easiest way to reproduce it. I ran into it when testing generators with `retainLines` and the generated `return` statement (replacing yeild) was printed on the line preceding the expression being yielded.
This commit is contained in:
parent
16c86c25b7
commit
a540cbe801
@ -0,0 +1,5 @@
|
||||
function foo(l) {
|
||||
return (
|
||||
l
|
||||
);
|
||||
}
|
||||
@ -0,0 +1,2 @@
|
||||
function foo(l) {
|
||||
return l;}
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"retainLines": true
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user