diff --git a/compiler/lowerings.nim b/compiler/lowerings.nim index 245cc5f613..3a03252fd5 100644 --- a/compiler/lowerings.nim +++ b/compiler/lowerings.nim @@ -115,7 +115,7 @@ proc createObj*(owner: PSym, info: TLineInfo): PType = incl result.flags, tfFinal result.n = newNodeI(nkRecList, info) when true: - let s = newSym(skType, getIdent("Env_" & info.toFilename & "_" & $info.line), + let s = newSym(skType, getIdent("Env_" & info.toFilename), owner, info) incl s.flags, sfAnon s.typ = result