Revert "fixes #267"

This reverts commit 7fccdedcb5.
This commit is contained in:
Araq 2013-05-27 23:20:41 +02:00
commit a8ba628bcd
5 changed files with 97 additions and 184 deletions

View file

@ -982,8 +982,6 @@ 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