Skip to content

Type created using @typedef in inner scope is not recognized #544

@dimvar

Description

@dimvar

See thread here:
https://groups.google.com/forum/#!topic/closure-compiler-discuss/Al990_NyydY

(function() {
  /** @typedef {number} */ var Num;
  /** @type {Num} */
  var n;
}());

We will fix this in the new type inference, but unlikely before then.

Metadata

Metadata

Assignees

Labels

OTIP2buginternal-issue-createdAn internal Google issue has been created to track this GitHub issuetriage-doneHas been reviewed by someone on triage rotation.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions