Open tobil4sk opened 4 weeks ago
This is done on purpose. func < T > (3)
is a valid JavaScript and users should avoid adding undesirable spaces.
func<T>(3)
is also valid JavaScript syntax. The TypeScript compiler intentionally parses both as a generic call, regardless of spaces: https://github.com/Microsoft/TypeScript/issues/1121.
The syntax does not accept type parameters if there is a space before
<
.This patch seems to solve the issue: