Skip to content

Commit 82800a5

Browse files
committed
skip template literals for now
1 parent e927b04 commit 82800a5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/resolver.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2341,10 +2341,12 @@ export class Resolver extends DiagnosticEmitter {
23412341
let fltType = ctxType == Type.f32 ? Type.f32 : Type.f64;
23422342
return assert(fltType.getClassOrWrapper(this.program));
23432343
}
2344-
case LiteralKind.String:
2345-
case LiteralKind.Template: {
2344+
case LiteralKind.String: {
23462345
// Resolve to stringref if context indicates
23472346
if (ctxType.kind == TypeKind.String) return this.program.refStringInstance;
2347+
// fall-through
2348+
}
2349+
case LiteralKind.Template: {
23482350
return this.program.stringInstance;
23492351
}
23502352
case LiteralKind.RegExp: {

0 commit comments

Comments
 (0)