mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 10:58:20 -05:00
Added test case.
This commit is contained in:
15
tests/cases/compiler/taggedTemplatesInDifferentScopes.ts
Normal file
15
tests/cases/compiler/taggedTemplatesInDifferentScopes.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export function tag(parts: TemplateStringsArray, ...values: any[]) {
|
||||
return parts[0];
|
||||
}
|
||||
function foo() {
|
||||
tag `foo`;
|
||||
tag `foo2`;
|
||||
}
|
||||
|
||||
function bar() {
|
||||
tag `bar`;
|
||||
tag `bar2`;
|
||||
}
|
||||
|
||||
foo();
|
||||
bar();
|
||||
Reference in New Issue
Block a user