parse void as an identifier when inside a type annotation to avoid setting void keyword token - cc @DmitrySoshnikov
This commit is contained in:
@@ -11148,3 +11148,9 @@ for (var ns in fbTestFixture) {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
test("<Foo foo={function (): void {}} />", {}, {
|
||||
ecmaVersion: 6,
|
||||
sourceType: "module",
|
||||
plugins: { jsx: true, flow: true },
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user