15 lines
396 B
TypeScript
15 lines
396 B
TypeScript
/// <reference path='fourslash.ts'/>
|
|
|
|
// Valid References for a label
|
|
|
|
////[|label|]: while (true) {
|
|
//// if (false) break [|label|];
|
|
//// if (true) continue [|label|];
|
|
////}
|
|
////
|
|
////[|label|]: while (false) { }
|
|
////var label = "label";
|
|
|
|
const [r0, r1, r2, r3] = test.ranges();
|
|
verify.singleReferenceGroup("label", [r0, r1, r2]);
|
|
verify.singleReferenceGroup("label", [r3]);
|