mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-15 07:51:32 +00:00
Initial element access compilation; Carefully approaching std array
This commit is contained in:
@ -10,7 +10,7 @@ class Animal<T> {
|
||||
instanceSub<T>(a: T, b: T): T { return a - b + <T>Animal.ONE; } // tsc does not allow this
|
||||
}
|
||||
|
||||
assert(sizeof<Animal<f64>>() == 7);
|
||||
assert(sizeof<Animal<f64>>() == sizeof<usize>());
|
||||
|
||||
Animal.ONE;
|
||||
Animal.add(1,2);
|
||||
|
Reference in New Issue
Block a user