parent
28221e8a33
commit
dbde97f649
1 changed files with 2 additions and 1 deletions
|
|
@ -685,7 +685,8 @@ proc getConstExpr(m: PSym, n: PNode; idgen: IdGenerator; g: ModuleGraph): PNode
|
|||
of nkDerefExpr, nkHiddenDeref:
|
||||
let a = getConstExpr(m, n[0], idgen, g)
|
||||
if a != nil and a.kind == nkNilLit:
|
||||
localError(g.config, n.info, "nil dereference is not allowed")
|
||||
result = nil
|
||||
#localError(g.config, n.info, "nil dereference is not allowed")
|
||||
of nkCast:
|
||||
var a = getConstExpr(m, n[1], idgen, g)
|
||||
if a == nil: return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue