leo
leo copied to clipboard
[Bug] any type allowed for loop bounds
🐛 Bug Report
Code snippet to reproduce
function main () -> u8 {
for i: bool in true..false {
let a: bool = i;
}
return 1u8;
}
Stack trace & error message
E:\Work\Aleo\leo-playground>leo\target\debug\leo.exe build
Build Starting...
Build Compiling main program... ("E:\\Work\\Aleo\\leo-playground\\src/main.leo")
Build Complete
Done Finished in 3 milliseconds
Your Environment
- testnet3 commit 5b572278fb1edc94f17807222fe3b710e3ae9962