nitg-se: fixed bug in subtyping type with phmod
authorAlexandre Terrasa <alexandre@moz-code.org>
Tue, 26 Feb 2013 23:21:15 +0000 (18:21 -0500)
committerAlexandre Terrasa <alexandre@moz-code.org>
Mon, 4 Mar 2013 18:20:01 +0000 (13:20 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

src/separate_erasure_compiler.nit

index 43227a7..831f04b 100644 (file)
@@ -520,7 +520,7 @@ class SeparateErasureCompilerVisitor
                        self.add("{res} = {accept_null};")
                        self.add("\} else \{")
                end
-               if self.compiler.as(SeparateErasureCompiler).vt_layout isa PHPropertyLayoutBuilder[MVirtualTypeProp] then
+               if self.compiler.as(SeparateErasureCompiler).class_layout isa PHTypingLayout[MClass] then
                        self.add("{cltype} = HASH({class_ptr}color, {idtype});")
                end
                self.add("if({cltype} >= {class_ptr}type_table->size) \{")