fixes #267
This commit is contained in:
parent
c093139494
commit
7fccdedcb5
5 changed files with 192 additions and 105 deletions
|
|
@ -982,6 +982,8 @@ proc matchTypeClass*(bindings: var TIdTable, typeClass, t: PType): bool =
|
|||
# if the loop finished without returning, either all constraints matched
|
||||
# or none of them matched.
|
||||
result = if tfAny in typeClass.flags: false else: true
|
||||
if result == true:
|
||||
IdTablePut(bindings, typeClass, t)
|
||||
|
||||
proc matchTypeClass*(typeClass, typ: PType): bool =
|
||||
var bindings: TIdTable
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue