Skip to content

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

Closed
@soronpo

Description

@soronpo

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions