implemented topological sorting for type resolution
This commit is contained in:
parent
e094049a0d
commit
597efe5791
3 changed files with 179 additions and 32 deletions
|
|
@ -1,13 +1,19 @@
|
|||
import std;
|
||||
|
||||
struct {
|
||||
u32 a,
|
||||
u32 b,
|
||||
};
|
||||
struct b {
|
||||
a b,
|
||||
}
|
||||
|
||||
i32 main(usize argc, [*u8] argv)
|
||||
struct c {
|
||||
u32 b,
|
||||
}
|
||||
|
||||
struct a {
|
||||
c b,
|
||||
}
|
||||
|
||||
i32 main(i32 argc, [*[*u8]] argv)
|
||||
{
|
||||
print("Hello world!\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue