TypeScript/tests/cases/fourslash/referencesBloomFilters2.ts

20 lines
534 B
TypeScript
Raw Normal View History

2014-08-20 20:25:39 +02:00
/// <reference path='fourslash.ts'/>
// Ensure BloomFilter building logic is correct, by having one reference per file
// @Filename: declaration.ts
////var container = { /*1*/42 : 1 };
// @Filename: expression.ts
////function blah() { return (container[/*2*/42]) === 2; };
// @Filename: stringIndexer.ts
////function blah2() { container[/*3*/"42"] };
// @Filename: redeclaration.ts
////container = { /*4*/"42" : 18 };
test.markers().forEach(m => {
goTo.position(m.position, m.fileName);
verify.referencesCountIs(4);
});