use package core
-
main :: proc (args: [] cstring) {
imap : I32Map(i32);
i32map_init(^imap);
i32map_put(^imap, 50, 1234);
i32map_put(^imap, 1234, 5678);
+ print(i32map_has(^imap, 50));
+ print("\n");
+ print(i32map_has(^imap, 51));
+ print("\n");
+
print(i32map_get(^imap, 50));
print(i32map_get(^imap, 1234));
print("\n");
st = (AstStructType *) ((AstPointerType *) param->local->type_node)->elem;
}
+ if (st->kind == Ast_Kind_Poly_Call_Type) {
+ onyx_report_error(param->local->token->pos, "Currently, cannot 'use' a polymorphic struct type. This will be added in the future.");
+ return;
+ }
+
bh_arr_each(AstStructMember *, mem, st->members) {
AstFieldAccess* fa = onyx_ast_node_new(semstate.node_allocator, sizeof(AstFieldAccess), Ast_Kind_Field_Access);
fa->token = (*mem)->token;