Folding constant enum access into constant int value

This commit is contained in:
Krzosa Karol
2022-05-31 13:10:56 +02:00
parent 627e2bad88
commit 437a776d78
5 changed files with 71 additions and 17 deletions

View File

@@ -1,5 +1,15 @@
Thing :: struct
len: int
thing: Thing
access := thing.len
Allocator_Kind :: enum
Null
Arena
Heap = Arena
Heap
kind := Allocator_Kind.Heap