leo icon indicating copy to clipboard operation
leo copied to clipboard

[Bug] any type allowed for loop bounds

Open 0rphon opened this issue 2 years ago • 0 comments

🐛 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

0rphon avatar Jun 22 '22 22:06 0rphon