TypeScript/tests/cases/conformance/externalModules/exportAssignImportedIdentifier.ts

13 lines
247 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
// @Filename: foo1.ts
export function x(){
return true;
}
// @Filename: foo2.ts
import foo1 = require('./foo1');
var x = foo1.x;
export = x;
// @Filename: foo3.ts
import foo2 = require('./foo2');
var x = foo2(); // should be boolean