first steps for overloading support of passing blocks; bugfix: test results of 'compile' are not overwritten
This commit is contained in:
parent
1bb1db79b2
commit
64c638a9dc
12 changed files with 70 additions and 39 deletions
|
|
@ -701,7 +701,7 @@ proc sameTuple(a, b: PType, c: var TSameTypeClosure): bool =
|
|||
else:
|
||||
result = false
|
||||
|
||||
template IfFastObjectTypeCheckFailed(a, b: PType, body: stmt) =
|
||||
template IfFastObjectTypeCheckFailed(a, b: PType, body: stmt) {.immediate.} =
|
||||
if tfFromGeneric notin a.flags + b.flags:
|
||||
# fast case: id comparison suffices:
|
||||
result = a.id == b.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue