Fix some broken constructors.
authorJean Privat <jean@pryen.org>
Mon, 26 Jan 2009 19:46:15 +0000 (14:46 -0500)
committerJean Privat <jean@pryen.org>
Mon, 26 Jan 2009 19:46:15 +0000 (14:46 -0500)
Unautomatize attributes in MMAncestor class.
Explicitly call super in MMTypeFormal.

src/metamodel/genericity.nit
src/metamodel/static_type.nit

index 6a9d5dd..112212e 100644 (file)
@@ -247,7 +247,7 @@ special MMTypeFormal
        init(n: Symbol, p: Int, intro: MMLocalClass)
        do
                assert n != null
-               _name = n
+               super(n, null)
                _position = p
                _def_class = intro
        end
index 7fd2776..bf4616f 100644 (file)
@@ -208,10 +208,10 @@ end
 # Inheritance relation between two types
 abstract class MMAncestor
        # The inherited type
-       readable writable attr _stype: MMType 
+       readable writable attr _stype: MMType = null 
 
        # The inheriter (heir) type
-       readable writable attr _inheriter: MMType 
+       readable writable attr _inheriter: MMType  = null
 
        meth is_reffinement: Bool do
                return stype.module != stype.module