Type info uses slices now! Fixed a case of slice needing to have a completed type
This commit is contained in:
@@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user