2014-07-13 01:04:16 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// @Filename: mergedDeclarationsWithExportAssignment1_file0.ts
|
|
|
|
////class Foo {
|
|
|
|
//// doStuff(x: number): number;
|
|
|
|
////}
|
|
|
|
////module Foo {
|
|
|
|
//// export var x: number;
|
|
|
|
////}
|
|
|
|
////export = Foo;
|
|
|
|
|
|
|
|
// @Filename: mergedDeclarationsWithExportAssignment1_file1.ts
|
|
|
|
///////<reference path='mergedDeclarationsWithExportAssignment1_file0.ts'/>
|
2014-10-07 20:30:27 +02:00
|
|
|
////import /*1*/Foo = require('mergedDeclarationsWithExportAssignment1_file0');
|
|
|
|
////var /*3*/z = new /*2*/Foo();
|
|
|
|
////var /*5*/r2 = Foo./*4*/x;
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
// this line triggers a semantic/syntactic error check, remove line when 788570 is fixed
|
|
|
|
edit.insert('');
|
|
|
|
|
|
|
|
goTo.marker('1');
|
2014-10-11 00:24:19 +02:00
|
|
|
verify.quickInfoIs("import Foo = require('mergedDeclarationsWithExportAssignment1_file0')");
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('2');
|
|
|
|
verify.completionListContains('Foo');
|
|
|
|
|
|
|
|
goTo.marker('3');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs('(var) z: Foo');
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
goTo.marker('4');
|
|
|
|
verify.completionListContains('x');
|
|
|
|
|
|
|
|
goTo.marker('5');
|
2014-10-07 20:30:27 +02:00
|
|
|
verify.quickInfoIs('(var) r2: number');
|
2014-07-13 01:04:16 +02:00
|
|
|
|