microsoft / vscode-typescript-next

Enables typescript@next as VS Code's built-in TypeScript version
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-next
MIT License
224 stars 41 forks source link

Static type checking returns inconsistent results for arrow functions and normal functions #118

Closed quark-ftc closed 2 months ago

quark-ftc commented 6 months ago

When I write a type-checking function using a normal function (without the is predicate), the plugin prompts an error 11111111111 But when I rewrite it as an arrow function, the plugin doesn't give an error, but the TS compiler still gives an error 222222222222

mjbvz commented 3 months ago

Please also share the code as text, not just screenshots

mjbvz commented 2 months ago

Closing as more info needed