2a4930f4ec
* Bind a jsdoc enum as SymbolFlags.TypeAlias and not SymbolFlags.Enum * Actually include an @enum tag as a declaration * Add enum tag refs into a couple more syntax kind lists * accept symbol baseline update
27 lines
384 B
TypeScript
27 lines
384 B
TypeScript
/// <reference path="./fourslash.ts"/>
|
|
|
|
// @allowJs: true
|
|
// @noLib: true
|
|
|
|
// @Filename: /a.js
|
|
/////**
|
|
//// * Doc
|
|
//// * @enum {number}
|
|
//// */
|
|
////const E = {
|
|
//// A: 0,
|
|
////}
|
|
////
|
|
/////** @type {/*type*/E} */
|
|
////const x = /*value*/E.A;
|
|
|
|
verify.noErrors();
|
|
|
|
verify.quickInfoAt("type",
|
|
`type E = number`,
|
|
"Doc");
|
|
verify.quickInfoAt("value",
|
|
`const E: {
|
|
A: number;
|
|
}`,
|
|
"Doc");
|