diff --git a/compiler/sigmatch.nim b/compiler/sigmatch.nim index a3b9de5f48..4a5132d6d4 100644 --- a/compiler/sigmatch.nim +++ b/compiler/sigmatch.nim @@ -384,7 +384,7 @@ proc skipToGenericBody(t: PType; skipped: var SkippedPtr): PType = inc ptrs skipped = skippedPtr r = r.lastSon - of tyGenericBody: + of tyGenericBody, tyObject: r = r.lastSon else: break