2014-11-12 23:23:59 +01:00
|
|
|
/// <reference path='fourslash.ts' />
|
|
|
|
|
|
|
|
////const /*1*/a = 10;
|
|
|
|
////var x = /*2*/a;
|
|
|
|
/////*3*/
|
|
|
|
////function foo() {
|
|
|
|
//// const /*4*/b = 20;
|
|
|
|
//// var y = /*5*/b;
|
|
|
|
//// var z = /*6*/a;
|
|
|
|
//// /*7*/
|
|
|
|
////}
|
|
|
|
goTo.marker('1');
|
2014-11-13 03:42:31 +01:00
|
|
|
verify.quickInfoIs("(const) a: number");
|
2014-11-12 23:23:59 +01:00
|
|
|
|
|
|
|
goTo.marker('2');
|
2014-11-13 03:42:31 +01:00
|
|
|
verify.completionListContains("a", "(const) a: number");
|
|
|
|
verify.quickInfoIs("(const) a: number");
|
2014-11-12 23:23:59 +01:00
|
|
|
|
|
|
|
goTo.marker('3');
|
2014-11-13 03:42:31 +01:00
|
|
|
verify.completionListContains("a", "(const) a: number");
|
2014-11-12 23:23:59 +01:00
|
|
|
|
|
|
|
goTo.marker('4');
|
2014-11-13 03:42:31 +01:00
|
|
|
verify.quickInfoIs("(const) b: number");
|
2014-11-12 23:23:59 +01:00
|
|
|
|
|
|
|
goTo.marker('5');
|
2014-11-13 03:42:31 +01:00
|
|
|
verify.completionListContains("a", "(const) a: number");
|
|
|
|
verify.completionListContains("b", "(const) b: number");
|
|
|
|
verify.quickInfoIs("(const) b: number");
|
2014-11-12 23:23:59 +01:00
|
|
|
|
|
|
|
goTo.marker('6');
|
2014-11-13 03:42:31 +01:00
|
|
|
verify.completionListContains("a", "(const) a: number");
|
|
|
|
verify.completionListContains("b", "(const) b: number");
|
|
|
|
verify.quickInfoIs("(const) a: number");
|
2014-11-12 23:23:59 +01:00
|
|
|
|
|
|
|
goTo.marker('7');
|
2014-11-13 03:42:31 +01:00
|
|
|
verify.completionListContains("a", "(const) a: number");
|
|
|
|
verify.completionListContains("b", "(const) b: number");
|