Skip to content

Commit f94bded

Browse files
Added test for module & global examples.
1 parent 5da45fb commit f94bded

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// @module: commonjs
2+
// @target: es5
3+
4+
// @filename: global.ts
5+
namespace n {
6+
function id<T>(x: T): T {
7+
return x;
8+
}
9+
10+
function templateObjectFactory() {
11+
return id`hello world`;
12+
}
13+
let result = templateObjectFactory() === templateObjectFactory();
14+
}
15+
// @filename: module.ts
16+
export { }
17+
function id<T>(x: T): T {
18+
return x;
19+
}
20+
21+
function templateObjectFactory() {
22+
return id`hello world`;
23+
}
24+
let result = templateObjectFactory() === templateObjectFactory();

0 commit comments

Comments
 (0)