2015-03-02 23:41:44 +01:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// References to a label outside function bounderies
|
|
|
|
|
2019-06-13 21:25:02 +02:00
|
|
|
////[|[|{| "contextRangeIndex": 0 |}label|]: function foo(label) {
|
2015-03-02 23:41:44 +01:00
|
|
|
//// while (true) {
|
2019-06-13 21:25:02 +02:00
|
|
|
//// [|break [|{| "contextRangeIndex": 2 |}label|];|]
|
2015-03-02 23:41:44 +01:00
|
|
|
//// }
|
2019-06-06 20:59:18 +02:00
|
|
|
////}|]
|
2015-03-02 23:41:44 +01:00
|
|
|
|
2019-06-06 20:59:18 +02:00
|
|
|
verify.singleReferenceGroup("label", "label");
|