22 lines
558 B
TypeScript
22 lines
558 B
TypeScript
/// <reference path="fourslash.ts" />
|
|
|
|
// @strictNullChecks: true
|
|
|
|
////const enum E { A = "A", B = "B" }
|
|
////const enum E2 { X = "X", Y = "Y" }
|
|
////const e: E | undefined = /*a*/
|
|
////const e2: E | E2 = /*b*/
|
|
|
|
verify.completions(
|
|
{
|
|
marker: "a",
|
|
includes: { name: "E", isRecommended: true },
|
|
isNewIdentifierLocation: true,
|
|
},
|
|
{
|
|
marker: "b",
|
|
// Arbitrarily chooses one to be recommended
|
|
includes: [{ name: "E", isRecommended: true, }, { name: "E2" }],
|
|
isNewIdentifierLocation: true,
|
|
},
|
|
);
|