Fix code-gen for embedded literals

This commit is contained in:
Emery Hemingway 2023-10-26 15:32:35 +01:00
parent 71acd4c951
commit 6e0834316f
1 changed files with 1 additions and 1 deletions

View File

@ -400,7 +400,7 @@ proc toStrLit(loc: Location; sp: SimplePattern): PNode =
var (loc, def) = deref(loc, sp.ref)
result = toStrLit(loc, def)
of SimplePatternKind.embedded:
result = PNode(kind: nkStrLit, strVal: "#!" & $sp.embedded.interface)
result = PNode(kind: nkStrLit, strVal: "#!" & toStrLit(loc, sp.embedded.interface).strVal)
else: raiseAssert $sp
proc toFieldIdent(s: string): PNode =