Improved types

This commit is contained in:
nub31
2025-01-30 17:36:44 +01:00
parent 47b88f58f3
commit 1f4b2a42eb
8 changed files with 94 additions and 54 deletions

6
input/core/arrsize.asm Normal file
View File

@@ -0,0 +1,6 @@
global arrsize
section .text
arrsize:
mov rax, [rdi]
ret

1
input/core/arrsize.nub Normal file
View File

@@ -0,0 +1 @@
extern func arrsize(array: Array<Any>): int64;

View File

@@ -2,9 +2,5 @@ import "core";
func main() {
let x = new Array<String>(2);
x[1] = "test1";
x[2] = "test2";
println(x[1]);
println(x[2]);
println(x == y);
}