TypeScript/tests/cases/fourslash/referencesForIndexProperty3.ts
2015-03-02 14:41:44 -08:00

19 lines
373 B
TypeScript

/// <reference path='fourslash.ts'/>
// References to a property of the apparent type using string indexer
////interface Object {
//// toMyString();
////}
////
////var y: Object;
////y./*1*/toMyString();
////
////var x = {};
////x[/*2*/"toMyString"]();
goTo.marker("1");
verify.referencesCountIs(3);
goTo.marker("2");
verify.referencesCountIs(3);