Collin Chin
Collin Chin
Closing this since arrays are currently not supported by Leo v1.6.2.
This is fixed on Leo v1.6.2 ```javascript Error [ETYC0372003]: Expected type `u8` but type `u32` was found --> src/main.leo:5:21 | 5 | let z: u8 = x + y; |...
Input file sections in Leo v1.6.2 refer to transition function inputs only. `const`, `public`, `private` modifiers must be stated with the input variable.
Arrays are currently not supported in Leo v1.6.2.
As of Leo v1.6.2, the error message has been updated: ``` Error [ETYC0372048]: Cannot call a local transition function from a transition function. ```
The record model has been integrated into Leo via the [`record` type](https://developer.aleo.org/leo/language#record) in Leo v1.6.2.
Leo v1.6.2 translated program file: ```javascript program rectangle.aleo { struct Rectangle { width: u32, height: u32, } function area(r: Rectangle) -> u32 { return r.width * r.height; } transition main(a:...
I've run the original snippet of code on Leo v1.6.2 and the program does not OOM (MacOS M1).
In Leo v1.6.2 the compiler pass structure has been refactored to target Aleo Instructions. Closing this proposal since it is outdated.
Struct member functions are deprecated in Leo v1.6.2.