Added test case.
This commit is contained in:
parent
924460406e
commit
16f7f6f2e9
1 changed files with 15 additions and 0 deletions
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