fixes a critical =trace generation bug (see test case) (#14140)

This commit is contained in:
Andreas Rumpf 2020-04-27 22:20:14 +02:00 • committed by GitHub
commit 065a6af2de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 22 additions and 2 deletions

View file

@ -253,7 +253,7 @@ proc searchTypeForAux(t: PType, predicate: TTypePredicate,
else:
discard
proc searchTypeFor(t: PType, predicate: TTypePredicate): bool =
proc searchTypeFor*(t: PType, predicate: TTypePredicate): bool =
var marker = initIntSet()
result = searchTypeForAux(t, predicate, marker)