Type info uses slices now! Fixed a case of slice needing to have a completed type

This commit is contained in:
Krzosa Karol
2023-03-29 10:22:43 +02:00
parent cb630951fd
commit 7dcd53587e
6 changed files with 24 additions and 22 deletions

View File

@@ -7,9 +7,6 @@ C :: struct
a: int
b: int
Test :: struct
a: int
main :: (argc: int, argv: **char): int
memes: U
memes.b = 10
@@ -17,7 +14,14 @@ main :: (argc: int, argv: **char): int
Assert(memes.a != 0)
compound: U = {b = 10.0}
c2: C = {b = 10}
Assert(compound.b == 10)
t := U
ti := GetTypeInfo(t)
Assert(ti.size == SizeOf(U))
/* @reproduction @todo
```