Improved types
This commit is contained in:
6
input/core/arrsize.asm
Normal file
6
input/core/arrsize.asm
Normal file
@@ -0,0 +1,6 @@
|
||||
global arrsize
|
||||
section .text
|
||||
|
||||
arrsize:
|
||||
mov rax, [rdi]
|
||||
ret
|
||||
1
input/core/arrsize.nub
Normal file
1
input/core/arrsize.nub
Normal file
@@ -0,0 +1 @@
|
||||
extern func arrsize(array: Array<Any>): int64;
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user