Fix code-gen for embedded literals
This commit is contained in:
parent
71acd4c951
commit
6e0834316f
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue