TypeScript/tests/cases/compiler/taggedTemplatesInDifferentScopes.ts
Daniel Rosenwasser 16f7f6f2e9 Added test case.
2017-10-13 15:40:31 -07:00

16 lines
208 B
TypeScript

export function tag(parts: TemplateStringsArray, ...values: any[]) {
return parts[0];
}
function foo() {
tag `foo`;
tag `foo2`;
}
function bar() {
tag `bar`;
tag `bar2`;
}
foo();
bar();