Add regression test for #3055 (#3791)

This commit is contained in:
Dan Abramov
2018-01-14 17:28:56 +00:00
committed by Joe Haddad
parent 5d1710aec2
commit 0ff234949f

View File

@@ -17,6 +17,16 @@ async function load() {
];
}
/* eslint-disable */
// Regression test for https://github.com/facebookincubator/create-react-app/issues/3055
const x = async (
/* prettier-ignore */
y: void
) => {
const z = await y;
};
/* eslint-enable */
export default class extends Component {
static propTypes = {
onReady: PropTypes.func.isRequired,