diff --git a/tests/cases/compiler/taggedTemplatesInDifferentScopes.ts b/tests/cases/compiler/taggedTemplatesInDifferentScopes.ts new file mode 100644 index 00000000000..836a3535029 --- /dev/null +++ b/tests/cases/compiler/taggedTemplatesInDifferentScopes.ts @@ -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();