one(mockClass).getStandartTypeByName("Int");
will(returnValue(intType));
} });
HaxeTree tree = parseFunction("function main() { var x; x=123 + 1; }");
linker.visit(tree, new Environment());
Binary node = TestHelper.getBinaryExpression(tree);
assertTrue(node.getHaxeType() == TypeUtils.getInt());
}