diff --git a/src/identcheck.c b/src/identcheck.c index 14c6175..9bb8f09 100644 --- a/src/identcheck.c +++ b/src/identcheck.c @@ -14,6 +14,7 @@ IdNode* MakeIdNode(NodeType type, char *name, IdNode *parent) { node->childCount = 0; node->childCapacity = 0; node->children = NULL; + node->typeTag = NULL; return node; } diff --git a/types.w b/types.w new file mode 100644 index 0000000..f83e5e5 --- /dev/null +++ b/types.w @@ -0,0 +1,14 @@ +struct MyStruct { + foo: int; + bar: bool; + MyFunction(): int { + return foo * 420; + } +} + +struct Program { + static Main(): int { + decl: Reference>>>>; + return 0; + } +} \ No newline at end of file