Core: Conditional compound to fix Msvc, better assert but printf based, Fix tests
This commit is contained in:
@@ -16,6 +16,12 @@ Tuple :: struct($A: Type, $B: Type)
|
||||
a: A
|
||||
b: B
|
||||
|
||||
Triple :: struct($A: Type, $B: Type, $C: Type)
|
||||
a: A
|
||||
b: B
|
||||
c: C
|
||||
|
||||
|
||||
Variant :: union($A: Type, $B: Type, $C: Type)
|
||||
a: A
|
||||
b: B
|
||||
@@ -49,9 +55,6 @@ GetCount :: (a: int): int
|
||||
// @todo: this is allowed, shouldn't be
|
||||
// Test :: (a: int, b: int = 10, c: int???)
|
||||
|
||||
Test :: (a: C.Triple(int, int, int))
|
||||
pass
|
||||
|
||||
// @todo:
|
||||
// Add :: (arr: *Array($T), item: T)
|
||||
// return
|
||||
@@ -74,7 +77,6 @@ main :: (argc: int, argv: **char): int
|
||||
sixth: Array(Array(F32))
|
||||
seventh: Variant(int, F32, S64)
|
||||
|
||||
Test({1,2,3})
|
||||
test_a := int
|
||||
test := *int
|
||||
Assert(test_a != test)
|
||||
|
||||
Reference in New Issue
Block a user