Skip to content

Commit c012cc1

Browse files
authored
Add regression test for #3055 (#3791)
1 parent d73a952 commit c012cc1

File tree

1 file changed

+10
-0
lines changed
  • packages/react-scripts/fixtures/kitchensink/src/features/syntax

1 file changed

+10
-0
lines changed

packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js

+10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ async function load() {
1717
];
1818
}
1919

20+
/* eslint-disable */
21+
// Regression test for https://github.com/facebookincubator/create-react-app/issues/3055
22+
const x = async (
23+
/* prettier-ignore */
24+
y: void
25+
) => {
26+
const z = await y;
27+
};
28+
/* eslint-enable */
29+
2030
export default class extends Component {
2131
static propTypes = {
2232
onReady: PropTypes.func.isRequired,

0 commit comments

Comments
 (0)