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] Arrays starting with implicit value failed to resolve type #607

Closed
0rphon opened this issue Feb 3, 2021 · 0 comments · Fixed by #674
Closed

[Bug] Arrays starting with implicit value failed to resolve type #607

0rphon opened this issue Feb 3, 2021 · 0 comments · Fixed by #674
Assignees
Labels
bug Something isn't working

Comments

@0rphon
Copy link
Contributor

0rphon commented Feb 3, 2021

Code snippet to reproduce

function main () {
    let a = [1u8, 2u8, 3u8, 4]; //correct
    let b = [1u8, 2u8, 3, 4u8]; //correct
    let c = [1u8, 2, 3u8, 4u8]; //correct
    let d = [1, 2u8, 3u8, 4u8]; //error
}

Stack trace & error message

 Compiling     -->  5:14
     |
   5 |      let d = [1, 2u8, 3u8, 4u8]; //error
     |               ^
     |
     = failed to resolve type for variable definition 'unknown'

Your Environment

  • leo's latest master commit 90fc6a9
  • rustc 1.49.0 (e1884a8e3 2020-12-29)
  • windows 10 build 10.0.19042.746
@0rphon 0rphon added bug Something isn't working fuzz-bug labels Feb 3, 2021
@0rphon 0rphon changed the title [Fuzz-Bug] Arrays starting with implicit value failed to resolve type [Bug] Arrays starting with implicit value failed to resolve type Feb 3, 2021
@bors bors bot closed this as completed in 4253ac9 Mar 2, 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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants