Fix losing type pointer in constant type value

This commit is contained in:
Krzosa Karol
2023-04-02 12:51:58 +02:00
parent f8e78c8ee4
commit 7203589915
3 changed files with 10 additions and 6 deletions

View File

@@ -50,7 +50,7 @@ MakeArray :: (a: *int, count: int): Array(int)
MultipleArgs :: (): Tuple(int, F32)
return {32, 32}
PolyLambda :: ($T: Type): T
PolyLambda :: ($T: Type = *int): T
return 32
GetCount :: (a: int): int
@@ -71,7 +71,10 @@ main :: (argc: int, argv: **char): int
fifth: Array(F32)
sixth: Array(Array(F32))
seventh: Variant(int, F32, S64)
// d: int(32)
test_a := int
test := *int
Assert(test_a != test)
// c := MakeArray(buff, GetCount(GetCount(32)))
@@ -85,6 +88,6 @@ main :: (argc: int, argv: **char): int
Test(10, b = 10, c = 20)
Test(a = 10, b = 10, c = 20)
value := PolyLambda(int)
value := PolyLambda(**int)
return 0