Add polymorph token

This commit is contained in:
Krzosa Karol
2023-03-29 11:42:40 +02:00
parent 710fbf431b
commit d8c80fb7a3
5 changed files with 14 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
MA :: #import "Arena.core"
/*
PushStruct :: (a: *MA.Arena, $Type): *Type
PushStruct :: (a: *MA.Arena, $T: Type): *$T
size := size_of(Type)
result := PushSize(a, size)
return result

View File

@@ -37,4 +37,4 @@ examples/unions.core - Error! Couldn't infer type of compound expression
c = {10}
*/
return 0
return 0