remove unused sfProcvar, "procvar" mentions (#20204)
refs #12975. doesn't close it because wProcvar isn't removed
This commit is contained in:
parent
b6bfe38ff5
commit
d143924ab2
5 changed files with 8 additions and 8 deletions
|
|
@ -562,7 +562,8 @@ proc procVarCheck(n: PNode; conf: ConfigRef) =
|
|||
if n.kind in nkSymChoices:
|
||||
for x in n: procVarCheck(x, conf)
|
||||
elif n.kind == nkSym and n.sym.magic != mNone and n.sym.kind in routineKinds:
|
||||
localError(conf, n.info, "'$1' cannot be passed to a procvar" % n.sym.name.s)
|
||||
localError(conf, n.info, ("'$1' is a built-in and cannot be used as " &
|
||||
"a first-class procedure") % n.sym.name.s)
|
||||
|
||||
proc notNilCheck(tracked: PEffects, n: PNode, paramType: PType) =
|
||||
let n = n.skipConv
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue