Interpret function calls to type refs as type casts

This commit is contained in:
Randy Heit 2013-10-30 20:53:02 -05:00
commit 16fc9be411
4 changed files with 81 additions and 10 deletions

View file

@ -234,6 +234,14 @@ struct ZCC_Expression : ZCC_TreeNode
{
EZCCExprType Operation;
PType *Type;
// Repurposes this node as an error node
void ToErrorNode()
{
Type = TypeError;
Operation = PEX_Nil;
NodeType = AST_Expression;
}
};
struct ZCC_StateGoto : ZCC_StatePart