We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
using the same implicit value for different types causes leo to throw an error
function main () { let x: u8 = 2; let z: u16 = 2; }
Compiling Starting... Compiling Compiling main program... ("d:\\Work\\leo_playground\\src/main.leo") Compiling --> "d:\\Work\\leo_playground\\src/main.leo": 2:5 | 2 | let x: u8 = 2; | ^^^^^^^^^^^^^^ | = Mismatched types. Expected type `u8`, found type `u16`.
The text was updated successfully, but these errors were encountered:
fixed by asg (2657c44)
Sorry, something went wrong.
No branches or pull requests
🐛 Bug Report
using the same implicit value for different types causes leo to throw an error
Code snippet to reproduce
Stack trace & error message
Your Environment
The text was updated successfully, but these errors were encountered: