Interpret function calls to type refs as type casts
This commit is contained in:
parent
2adf5782b9
commit
16fc9be411
4 changed files with 81 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue