Invalid diagnostics produced #15666
Labels
API
Relates to the public API for TypeScript
Bug
A bug in TypeScript
Fixed
A PR has been merged for this issue
Help Wanted
You can do this
Milestone
TypeScript Version: 2.3.1
TS produces
Diagnostic
s withundefined
file
field here: https://github.com/Microsoft/TypeScript/blob/2150a7796b0dfe83c5286755410e0fd1646ed86c/src/compiler/core.ts#L1235-L1251But
Diagnostic.file
is declared as non-optional.This causes unexpected "Cannot read property x of undefined" errors, even with strict null checks on.
The text was updated successfully, but these errors were encountered: