parse void as an identifier when inside a type annotation to avoid setting void keyword token - cc @DmitrySoshnikov

This commit is contained in:
Sebastian McKenzie
2015-06-24 23:15:00 +01:00
parent 23ec1a455e
commit aa25903c05
3 changed files with 21 additions and 15 deletions

View File

@@ -11148,3 +11148,9 @@ for (var ns in fbTestFixture) {
});
}
}
test("<Foo foo={function (): void {}} />", {}, {
ecmaVersion: 6,
sourceType: "module",
plugins: { jsx: true, flow: true },
});