2014-08-23 01:30:21 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// Global variable reference.
|
|
|
|
|
|
|
|
// @Filename: referencesForGlobals_1.ts
|
|
|
|
////var /*1*/global = 2;
|
|
|
|
////
|
|
|
|
////class foo {
|
|
|
|
//// constructor (public global) { }
|
|
|
|
//// public f(global) { }
|
|
|
|
//// public f2(global) { }
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////class bar {
|
|
|
|
//// constructor () {
|
|
|
|
//// var n = global;
|
|
|
|
////
|
|
|
|
//// var f = new foo('');
|
|
|
|
//// f.global = '';
|
|
|
|
//// }
|
|
|
|
////}
|
|
|
|
////
|
|
|
|
////var k = global;
|
|
|
|
|
|
|
|
// @Filename: referencesForGlobals_2.ts
|
|
|
|
////var m = global;
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
2014-08-23 01:30:21 +02:00
|
|
|
edit.insert('');
|
|
|
|
|
|
|
|
goTo.marker("1");
|
2014-07-13 01:04:16 +02:00
|
|
|
verify.referencesCountIs(4);
|