Don't parenthesize arrow functions in parameter lists

This commit is contained in:
Richard van Velzen
2016-09-01 09:35:31 +02:00
parent 7f6b5d662b
commit 1db50c3b16
2 changed files with 14 additions and 2 deletions

View File

@@ -390,4 +390,15 @@ regression_cannot_use_of: {
x.of;
foo(); /* Label statement missing? No prob. */
}
}
}
fat_arrow_as_param: {
input: {
foo(x => x);
foo(x => x, y => y);
foo(x => (x, x));
foo(x => (x, x), y => (y, y));
}
expect_exact: "foo(x=>x);foo(x=>x,y=>y);foo(x=>(x,x));foo(x=>(x,x),y=>(y,y));"
}