Closed
Description
TS may mistakenly use generics as jsx,but it's ok on vscode.
TypeScript Version: 3.0.1
Search Terms:
jsx generics, class generics
Code
const a = <T = any>(): Array<T> => {
return;
}
Expected behavior:
Playground Link:
compile errror:
https://agentcooper.github.io/typescript-play/?jsx=1#code/MYewdgzgLgBAhjAvDAPAFSfMBPAfACgEoAuGAQQCcK5t1cl6BvAWACgYOYKBTKAVwpgA3GwC+QA
but code on this is OK