diff options
Diffstat (limited to 'compiler/sempass2.nim')
-rw-r--r-- | compiler/sempass2.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/sempass2.nim b/compiler/sempass2.nim index 89d8d45d8..ccf385876 100644 --- a/compiler/sempass2.nim +++ b/compiler/sempass2.nim @@ -219,8 +219,8 @@ proc checkRaisesSpec(spec, real: PNode) = for r in items(real): block search: for s in 0 .. <spec.len: - # r supertype of s? - if inheritanceDiff(r.excType, spec[s].typ) <= 0: + # s supertype of r? + if inheritanceDiff(spec[s].typ, r.excType) <= 0: used.incl(s) break search # XXX call graph analysis would be nice here! |