typing: Make `TypeVisitor::mclassdef` non-nullable
authorJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Fri, 2 Jun 2017 01:18:53 +0000 (21:18 -0400)
committerJean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Fri, 2 Jun 2017 03:03:26 +0000 (23:03 -0400)
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

src/semantize/typing.nit

index 532d146..41b5eeb 100644 (file)
@@ -43,7 +43,7 @@ private class TypeVisitor
        var anchor: nullable MClassType = null
 
        # The analyzed mclassdef
-       var mclassdef: nullable MClassDef = null
+       var mclassdef: MClassDef is noinit
 
        # The analyzed property
        var mpropdef: MPropDef