-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptDesign LimitationConstraints of the existing architecture prevent this from being fixedConstraints of the existing architecture prevent this from being fixedDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationcheckJsRelates to checking JavaScript using TypeScriptRelates to checking JavaScript using TypeScript
Milestone

Description
TypeScript Version: 3.0.0-dev.20180711
Code
tsconfig.json
{
"compilerOptions": {
"strict": true,
"allowJs": true,
"checkJs": true
}
}
a.js
/**
* @template T
* @return {T}
*/
function f() { return x; }
const x = f();
Expected behavior:
Error somewhere that x
is implicitly any
.
Actual behavior:
No error.
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptDesign LimitationConstraints of the existing architecture prevent this from being fixedConstraints of the existing architecture prevent this from being fixedDomain: JSDocRelates to JSDoc parsing and type generationRelates to JSDoc parsing and type generationcheckJsRelates to checking JavaScript using TypeScriptRelates to checking JavaScript using TypeScript