summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-11-01 08:32:30 +0100
committerAraq <rumpf_a@web.de>2012-11-01 08:32:30 +0100
commitf35b51c68fb758b4ab40b06674e75a75ebf1bf38 (patch)
tree9923eb7c97f2e15b57a3003be7328ebb9e8a2e3f /compiler
parent42d0911d6a1daa60cfe0dcd2cf8c403083f6ca65 (diff)
downloadNim-f35b51c68fb758b4ab40b06674e75a75ebf1bf38.tar.gz
doc2 support for nimweb; fixed graphics.withEvents
Diffstat (limited to 'compiler')
-rw-r--r--compiler/sempass2.nim4
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!