2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='./fourslash.ts'/>
|
|
|
|
|
|
|
|
// @Filename: exportEqualTypes_file0.ts
|
|
|
|
////interface x {
|
|
|
|
//// (): Date;
|
|
|
|
//// foo: string;
|
|
|
|
////}
|
|
|
|
////export = x;
|
|
|
|
|
|
|
|
// @Filename: exportEqualTypes_file1.ts
|
|
|
|
///////<reference path='exportEqualTypes_file0.ts'/>
|
|
|
|
////import test = require('exportEqualTypes_file0');
|
2014-10-07 20:30:27 +02:00
|
|
|
////var t: /*1*/test; // var 't' should be of type 'test'
|
|
|
|
////var /*2*/r1 = t(); // Should return a Date
|
|
|
|
////var /*3*/r2 = t./*4*/foo; // t should have 'foo' in dropdown list and be of type 'string'
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('1');
|
2014-10-11 00:24:19 +02:00
|
|
|
verify.quickInfoIs("import test = require('exportEqualTypes_file0')");
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('2');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs('(var) r1: Date');
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('3');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs('(var) r2: string');
|
2014-07-13 01:04:16 +02:00
|
|
|
goTo.marker('4');
|
|
|
|
verify.memberListContains('foo');
|
|
|
|
verify.numberOfErrorsInCurrentFile(0);
|