-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue
Milestone
Description
Consider the following:
/**
* @template T
*/
function ident<T>(x:T):T {
return ident;
}getEncodedSyntacticClassifications will fail with Cannot read property 'text' of undefined
Stack:
NodeObject.createChildren @ ntypescript.js:50808
NodeObject.getChildren @ ntypescript.js:50845
processJSDocTemplateTag @ ntypescript.js:56304
classifyJSDocComment @ ntypescript.js:56270
classifyComment @ ntypescript.js:56243
classifyLeadingTriviaAndGetTokenStart @ ntypescript.js:56213
tryClassifyNode @ ntypescript.js:56345
processElement @ ntypescript.js:56482
processElement @ ntypescript.js:56484
processElement @ ntypescript.js:56484
getEncodedSyntacticClassifications @ ntypescript.js:56185
Reason: sourceFile is undefined somewhere in the stack
Version : latest as of this morning
refs alm-tools/alm#82 🌹
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDomain: APIRelates to the public API for TypeScriptRelates to the public API for TypeScriptFixedA PR has been merged for this issueA PR has been merged for this issue