modelize: Gracefully handle virtual types without definition in `check_virtual_types_...
authorJean Privat <jean@pryen.org>
Wed, 28 Oct 2015 16:04:51 +0000 (12:04 -0400)
committerJean Privat <jean@pryen.org>
Thu, 29 Oct 2015 12:36:27 +0000 (08:36 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/modelize/modelize_property.nit

index e4ae1c5..23feb87 100644 (file)
@@ -447,8 +447,7 @@ redef class ModelBuilder
                                var vt = t.mproperty
                                # Because `vt` is possibly unchecked, we have to do the bound-lookup manually
                                var defs = vt.lookup_definitions(mmodule, recv)
-                               # TODO something to manage correctly bound conflicts
-                               assert not defs.is_empty
+                               if defs.is_empty then return false
                                nexts = new Array[MType]
                                for d in defs do
                                        var next = defs.first.bound