swc had a bug related to parsing of type annotations. This is fixed by the pr and
swc can really parse almost all typescript codes.
The code below is quite simple, but need some careful approach to parse it correctly, as declare is one of contextual keywords.
swc can now parse class memebers named
swc miscompiled typescript enums if an enum member references other variant.
Affected code looks like
and it's now compiled as
which is exactly same as it of