public void testIntToFloatInReturnNode() throws RecognitionException
{
HaxeTree tree = parseModule("class A { function main():Int { return 123.1;}}");
linker.visit(tree, new Environment());
Return returnNode = getReturnNode(tree);
HaxeType type = returnNode.getHaxeType();
Function function = returnNode.getFunction();
HaxeType funType = function.getHaxeType();
assertTrue(!TypeUtils.isAvailableAssignement(funType, type));
}