Delete old scoping code, working on any types

This commit is contained in:
Krzosa Karol
2022-06-19 20:08:13 +02:00
parent 02743c86d8
commit 1a0354213e
3 changed files with 48 additions and 52 deletions

View File

@@ -1,15 +1,15 @@
main :: (argc: int, argv: **char): int
test_any()
test_type()
test_any :: ()
some_int_value := 10
thing: Any = some_int_value
other_any: Any = thing
imp_any := thing
assert(thing.type != Any)
Some_Struct :: struct
thing: int
@@ -43,4 +43,4 @@ test_type :: ()
t6 := get_type_info(type6)
t61 := get_type_info(t6.base_type)
t62 := get_type_info(t61.base_type)
assert(t62.kind == Type_Info_Kind.POINTER)
assert(t62.kind == Type_Info_Kind.POINTER)