Remove getNonNullableType application in checkIdentifier#60523
Remove getNonNullableType application in checkIdentifier#60523bgenia wants to merge 1 commit intomicrosoft:mainfrom
Conversation
|
Out of pure curiosity - do you know why this doesn't regress the tests introduced by #50092 ? :p |
|
That PR's test didn't seem to enable strict mode... |
|
Enabling strict mode in that test causes |
|
@typescript-bot test it |
|
Hey @jakebailey, the results of running the DT tests are ready. Everything looks the same! |
|
@jakebailey Here are the results of running the user tests with tsc comparing Something interesting changed - please have a look. Details
|
|
@jakebailey Here they are:
tscComparison Report - baseline..pr
System info unknown
Hosts
Scenarios
Developer Information: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
@jakebailey Here are the results of running the top 400 repos with tsc comparing Something interesting changed - please have a look. Details
|
|
This feels like something that shouldn't be required in strict mode without reporting an error or the need to add an assertion or smth: TS playground. This All other breaks reported above look basically the same to me. They assign to an unannotated variable from within a callback and then access that auto-typed variable with a non-null assertion. |
Fixes #60514