model: Fix an error message
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Mon, 4 Jul 2016 14:12:03 +0000 (10:12 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Mon, 4 Jul 2016 14:12:03 +0000 (10:12 -0400)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

src/model/model.nit

index 660de85..4060db6 100644 (file)
@@ -836,7 +836,7 @@ abstract class MType
                        return true
                end
 
-               assert sub isa MClassType else print "{sub} <? {sub}" # It is the only remaining type
+               assert sub isa MClassType else print "{sub} <? {sup}" # It is the only remaining type
 
                # Handle sup-type when the sub-type is class-based (other cases must have be identified before).
                if sup isa MFormalType or sup isa MNullType or sup isa MBottomType then