We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e927b04 commit 82800a5Copy full SHA for 82800a5
src/resolver.ts
@@ -2341,10 +2341,12 @@ export class Resolver extends DiagnosticEmitter {
2341
let fltType = ctxType == Type.f32 ? Type.f32 : Type.f64;
2342
return assert(fltType.getClassOrWrapper(this.program));
2343
}
2344
- case LiteralKind.String:
2345
- case LiteralKind.Template: {
+ case LiteralKind.String: {
2346
// Resolve to stringref if context indicates
2347
if (ctxType.kind == TypeKind.String) return this.program.refStringInstance;
+ // fall-through
2348
+ }
2349
+ case LiteralKind.Template: {
2350
return this.program.stringInstance;
2351
2352
case LiteralKind.RegExp: {
0 commit comments