Basic math expressions will passthrough now

This commit is contained in:
Nathan Braswell
2016-01-18 18:04:34 -05:00
parent bffedcf2fd
commit ac34a550d5
5 changed files with 47 additions and 27 deletions

View File

@@ -952,7 +952,7 @@ fun get_ast_type(node: *ast_node): *type {
match (*node) {
ast_node::identifier() return node->identifier.type
ast_node::function() return node->function.type
ast_node::function_call() return get_ast_type(node->function_call.func)
ast_node::function_call() return get_ast_type(node->function_call.func)->return_type
ast_node::value() return node->value.value_type
}
}