Don't parenthesize arrow functions in parameter lists
This commit is contained in:
@@ -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));"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user