-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression bug - false typescript error with regards to generics and generics inference #28445
Comments
Just to clarify - it's not a typescript build error (at least in the typescript version I'm building with) - it's an error syntax highlight in VS Code |
One more clarification - I confirmed that in typescript 3.1.6 it's a build error. |
Regression starting at 3.1 |
@weswigham I've retested this using the latest vscode and typescript 3.5.1 and it's still not working - how can I test if it was fixed? |
You'd have to use the nightly - |
Issue Type: Bug
I use a complex structure of classes, interfaces and generics.
The generic type is inferred by the first paramter of the class constructor.
In the current version I get a syntax highlight error that I did not receive in older versions (few month ago).
Here are some screenshots - and the code is below:
And the errors are:
and:
Here's the type script code with two members - one that get's the syntax error and one that works.
VS Code version: Code 1.28.2 (7f3ce96ff4729c91352ae6def877e59c561f4850, 2018-10-17T00:23:51.859Z)
OS version: Windows_NT x64 10.0.17134
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
Extensions (4)
The text was updated successfully, but these errors were encountered: