fix #866; generic static params
This commit is contained in:
parent
3dcf735482
commit
45a345e93d
5 changed files with 35 additions and 20 deletions
|
|
@ -50,7 +50,7 @@ proc strTableGet*(t: TStrTable, name: PIdent): PSym
|
|||
type
|
||||
TTabIter*{.final.} = object # consider all fields here private
|
||||
h*: THash # current hash
|
||||
|
||||
|
||||
proc initTabIter*(ti: var TTabIter, tab: TStrTable): PSym
|
||||
proc nextIter*(ti: var TTabIter, tab: TStrTable): PSym
|
||||
# usage:
|
||||
|
|
@ -157,6 +157,12 @@ proc leValue*(a, b: PNode): bool =
|
|||
#InternalError(a.info, "leValue")
|
||||
discard
|
||||
|
||||
proc weakLeValue*(a, b: PNode): TImplication =
|
||||
if a.kind notin nkLiterals or b.kind notin nkLiterals:
|
||||
result = impUnknown
|
||||
else:
|
||||
result = if leValue(a, b): impYes else: impNo
|
||||
|
||||
proc lookupInRecord(n: PNode, field: PIdent): PSym =
|
||||
result = nil
|
||||
case n.kind
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue