Added test for module & global examples.

This commit is contained in:
Daniel Rosenwasser 2017-09-29 23:01:33 -07:00
parent 5da45fb6de
commit f94bdedc79

View file

@ -0,0 +1,24 @@
// @module: commonjs
// @target: es5
// @filename: global.ts
namespace n {
function id<T>(x: T): T {
return x;
}
function templateObjectFactory() {
return id`hello world`;
}
let result = templateObjectFactory() === templateObjectFactory();
}
// @filename: module.ts
export { }
function id<T>(x: T): T {
return x;
}
function templateObjectFactory() {
return id`hello world`;
}
let result = templateObjectFactory() === templateObjectFactory();