You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found it surprising and weird that function (lowercase) can be used as a type. Support for this was added when support for the Function type was added, back in 2015, but I am not aware of anyone actually using this (or even being aware of this). I would be happy to remove support for this and make this an error.
For now feel free to delete this test case from Prettier.
I was working on Prettier to make tests run both
flow
andbabel-flow
parser prettier/prettier#14245, and found an edge case.flow/tests/generics/generics.js
Line 40 in f87d5bf
flow
can parsefunction
as identifier, butbabel
can't, and I found other keywords likeclass
/while
can't be used there.Should it be valid or invalid?
The text was updated successfully, but these errors were encountered: