mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-15 03:23:08 -06:00
Added test case.
This commit is contained in:
parent
924460406e
commit
16f7f6f2e9
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();
|
||||
Loading…
x
Reference in New Issue
Block a user