fixes #7092
This commit is contained in:
parent
7ac1e6e528
commit
bf85955802
2 changed files with 13 additions and 3 deletions
|
|
@ -59,7 +59,7 @@ proc genLiteral(p: BProc, n: PNode, ty: PType): Rope =
|
|||
else:
|
||||
result = rope("NIM_NIL")
|
||||
of nkStrLit..nkTripleStrLit:
|
||||
case skipTypes(ty, abstractVarRange + {tyStatic}).kind
|
||||
case skipTypes(ty, abstractVarRange + {tyStatic, tyUserTypeClass, tyUserTypeClassInst}).kind
|
||||
of tyNil:
|
||||
result = genNilStringLiteral(p.module, n.info)
|
||||
of tyString:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue