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

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

Open
soronpo opened this issue Nov 27, 2024 · 0 comments · May be fixed by #22449
Open

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

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

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
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.

2 participants