From 16f7f6f2e94c489780efed8227adeffc37d22769 Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Fri, 13 Oct 2017 14:33:53 -0700 Subject: [PATCH] Added test case. --- .../compiler/taggedTemplatesInDifferentScopes.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/cases/compiler/taggedTemplatesInDifferentScopes.ts 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();