println("Test 2");
}
+[ ] Array literals used as default values for struct members can break things.
+
+ Foo :: struct {
+ arr : [5] u32 = u32.[ 2, 3, 5, 7, 11 ];
+ }
+
+ foo := Foo.{}; OR foo := new(Foo);
+
[ ] Aliasing in many cases does not work. For example:
SomeNamespace :: struct {
if (node->kind == Ast_Kind_NumLit && node->type->kind == Type_Kind_Basic) {
if (node->type->Basic.kind == Basic_Kind_Int_Unsized) {
- if ((((u64) ((AstNumLit *) node)->value.l) >> 32) > 0)
+ if (bh_abs(((AstNumLit *) node)->value.l) >= (1ull << 32))
convert_numlit_to_type((AstNumLit *) node, &basic_types[Basic_Kind_I64]);
else
convert_numlit_to_type((AstNumLit *) node, &basic_types[Basic_Kind_I32]);