model: do not fatal when more than one primitive class. just return one.
authorJean Privat <jean@pryen.org>
Fri, 28 Nov 2014 13:33:10 +0000 (08:33 -0500)
committerJean Privat <jean@pryen.org>
Fri, 28 Nov 2014 13:33:10 +0000 (08:33 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

src/model/model.nit

index f5582d8..cd6aaec 100644 (file)
@@ -263,7 +263,7 @@ redef class MModule
                        var msg = "Fatal Error: more than one primitive class {name}:"
                        for c in cla do msg += " {c.full_name}"
                        print msg
-                       exit(1)
+                       #exit(1)
                end
                return cla.first
        end