X-Git-Url: http://nitlanguage.org diff --git a/src/astbuilder.nit b/src/astbuilder.nit index 8aa0295..7dafd2f 100644 --- a/src/astbuilder.nit +++ b/src/astbuilder.nit @@ -32,7 +32,7 @@ class ASTBuilder # Make a new Int literal fun make_int(value: Int): AIntExpr do - return new ADecIntExpr.make(value, mmodule.get_primitive_class("Int").mclass_type) + return new ADecIntExpr.make(value, mmodule.int_type) end # Make a new instatiation @@ -244,7 +244,9 @@ redef class AIfExpr _n_kwif = new TKwif _n_expr = condition _n_expr.parent = self + _n_kwthen = new TKwthen _n_then = new ABlockExpr.make + _n_kwelse = new TKwelse _n_else = new ABlockExpr.make self.mtype = mtype self.is_typed = true