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
The below code snippet generates the following error message: error: 'Bar' parameter #2 has 'Foo[?]' type, but value has type 'Foo[x]'
error: 'Bar' parameter #2 has 'Foo[?]' type, but value has type 'Foo[x]'
I believe this signature is well-typed, so I assume this is a compiler bug.
@Mogball, I expect this bug is for you.
@value struct Foo[x: Int]: pass @value struct Bar[x: Int, //, y: Int, foo: Foo[x]]: pass fn test(arg: Bar[5, _]) -> Bar[5, arg.foo]: return Bar[5, arg.foo]()
Mojo nightly 2024.5.2605 (9c328b12)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug description
The below code snippet generates the following error message:
error: 'Bar' parameter #2 has 'Foo[?]' type, but value has type 'Foo[x]'
I believe this signature is well-typed, so I assume this is a compiler bug.
@Mogball, I expect this bug is for you.
Steps to reproduce
System information
The text was updated successfully, but these errors were encountered: