add basic resolution of enums to llvm types

- pass ctx to codegen
 - add better type solver error for unhandled nodes
This commit is contained in:
Luna 2019-09-25 11:29:47 -03:00
parent 6b3d54aed7
commit 0b0a8896bb
4 changed files with 57 additions and 42 deletions

View file

@ -1,16 +1,13 @@
// import std;
struct B {
field i32
enum B {
a
b
c
}
struct Awoo {
b B
other_field i32
}
fn test_function() Awoo {
return 1;
fn test_function() B {
return B.a;
}
fn multwo(num: i32, double_flag: bool) i32 {