Skip to content

NamedTuple.From does not reduce with match type argument #22036

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

Closed
soronpo opened this issue Nov 27, 2024 · 0 comments · Fixed by #22449
Closed

NamedTuple.From does not reduce with match type argument #22036

soronpo opened this issue Nov 27, 2024 · 0 comments · Fixed by #22449
Assignees
Labels
area:named-tuples Issues tied to the named tuples feature. itype:bug
Milestone

Comments

@soronpo
Copy link
Contributor

soronpo commented Nov 27, 2024

Compiler version

v3.6.2-RC1

Minimized code

type Foo[T] = T
val x: NamedTuple.From[Tuple.Map[(Int, Int), Foo]] = ???
val y = x._1

Output

[error] 3 |val y = x._1
[error]   |        ^^^^
[error]   |        value _1 is not a member of NamedTuple.From[(Foo[Int], Foo[Int])]

Expectation

No error.

@soronpo soronpo added itype:bug area:named-tuples Issues tied to the named tuples feature. labels Nov 27, 2024
soronpo pushed a commit to DFiantHDL/DFHDL that referenced this issue Nov 27, 2024
@bishabosha bishabosha changed the title NamedTuple.From does not always work NamedTuple.From does not normalize match type argument Nov 27, 2024
@bishabosha bishabosha changed the title NamedTuple.From does not normalize match type argument NamedTuple.From does not reduce with match type argument Nov 27, 2024
@WojciechMazur WojciechMazur added this to the 3.7.0 milestone Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:named-tuples Issues tied to the named tuples feature. itype:bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants