Merge: model: Fix a spelling mistake
authorJean Privat <jean@pryen.org>
Mon, 4 Jul 2016 19:16:55 +0000 (15:16 -0400)
committerJean Privat <jean@pryen.org>
Mon, 4 Jul 2016 19:16:55 +0000 (15:16 -0400)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #2217
Reviewed-by: Jean Privat <jean@pryen.org>

1  2 
src/model/model.nit

diff --combined src/model/model.nit
@@@ -75,7 -75,7 +75,7 @@@ redef class Mode
        # Collections of classes grouped by their short name
        private var mclasses_by_name = new MultiHashMap[String, MClass]
  
 -      # Return all class named `name`.
 +      # Return all classes named `name`.
        #
        # If such a class does not exist, null is returned
        # (instead of an empty array)
@@@ -159,7 -159,7 +159,7 @@@ redef class MModul
                return self.in_importation <= mclass.intro_mmodule
        end
  
-       # Full hierarchy of introduced ans imported classes.
+       # Full hierarchy of introduced and imported classes.
        #
        # Create a new hierarchy got by flattening the classes for the module
        # and its imported modules.
                                cladef.add_in_hierarchy
                                return c
                        end
 -                      print("Fatal Error: no primitive class {name} in {self}")
 +                      print_error("Fatal Error: no primitive class {name} in {self}")
                        exit(1)
                        abort
                end
                if cla.length != 1 then
                        var msg = "Fatal Error: more than one primitive class {name} in {self}:"
                        for c in cla do msg += " {c.full_name}"
 -                      print msg
 +                      print_error msg
                        #exit(1)
                end
                return cla.first
                        if res == null then
                                res = mprop
                        else if res != mprop then
 -                              print("Fatal Error: ambigous property name '{name}'; conflict between {mprop.full_name} and {res.full_name}")
 +                              print_error("Fatal Error: ambigous property name '{name}'; conflict between {mprop.full_name} and {res.full_name}")
                                abort
                        end
                end
@@@ -836,7 -836,7 +836,7 @@@ abstract class MTyp
                        return true
                end
  
 -              assert sub isa MClassType else print "{sub} <? {sub}" # It is the only remaining type
 +              assert sub isa MClassType else print_error "{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
                        return false
                end
  
 -              assert sup isa MClassType else print "got {sup} {sub.inspect}" # It is the only remaining type
 +              assert sup isa MClassType else print_error "got {sup} {sub.inspect}" # It is the only remaining type
  
                # Now both are MClassType, we need to dig
  
@@@ -2136,7 -2136,7 +2136,7 @@@ abstract class MPropert
                        end
                end
                if res.is_empty then
 -                      print "All lost! {candidates.join(", ")}"
 +                      print_error "All lost! {candidates.join(", ")}"
                        # FIXME: should be abort!
                end
                return res