Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Input types not enforced #1040

Closed
0rphon opened this issue Jun 16, 2021 · 0 comments · Fixed by #1054
Closed

[Bug] Input types not enforced #1040

0rphon opened this issue Jun 16, 2021 · 0 comments · Fixed by #1054
Assignees
Labels
bug Something isn't working priority-high A high priority bug/task in Leo.

Comments

@0rphon
Copy link
Contributor

0rphon commented Jun 16, 2021

🐛 Bug Report

related to the old bug #504. the following should throw an error

Code snippet to reproduce

[main]
a: i128 = 2u8;
function main(a: u32) {
    let b = a ** 2;
}

Stack trace & error message

D:\Work\leo-playground>D:\Work\leo_repos\leo\target\release\leo clean && D:\Work\leo_repos\leo\target\release\leo run
      Done Finished in 0 milliseconds

     Build Starting...
     Build Compiling main program... ("D:\\Work\\leo-playground\\src/main.leo")
     Build Number of constraints - 270784
     Build Complete
      Done Finished in 1987 milliseconds

     Setup Starting...
     Setup Saving proving key ("D:\\Work\\leo-playground\\outputs/leo-playground.lpk")
     Setup Complete
     Setup Saving verification key ("D:\\Work\\leo-playground\\outputs/leo-playground.lvk")
     Setup Complete
      Done Finished in 5396 milliseconds 

   Proving Starting...
   Proving Saving proof... ("D:\\Work\\leo-playground\\outputs/leo-playground.proof")
      Done Finished in 1640 milliseconds 

 Verifying Starting...
 Verifying Proof is valid
      Done Finished in 2 milliseconds 

Your Environment

  • leo commit 20befbd
  • rustc version 1.55.0-nightly
  • windows 10 build 10.0.19041.630
@0rphon 0rphon added the bug Something isn't working label Jun 16, 2021
@gluax gluax self-assigned this Jun 17, 2021
@gluax gluax added the priority-high A high priority bug/task in Leo. label Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority-high A high priority bug/task in Leo.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants