Skip to content

Commit 291bbcf

Browse files
committed
Add regression test for #3055 (#3791)
1 parent a0a8451 commit 291bbcf

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)