Added test case.
This commit is contained in:
parent
475f90bc6b
commit
2f917d5abc
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…
Reference in a new issue