Named Tuples don't propagate singleton types as widely as tuples #20267
Labels
area:experimental:named-tuples
Issues tied to the named tuples feature.
area:typer
itype:enhancement
Milestone
Compiler version
3.5-RC1, with #19174
Minimized example
Output
Expectation
Singleton types in an expected named tuple type should be propagated to the right-hand side just as in the case for normal tuples.
This currently fails because named tuples expand to typelevel operations that perform too much widening. It's not yet clear whether we want to pursue a solution specific to named tuples or whether we want to improve the type-level possibilities for precise types first and then build on that.
The text was updated successfully, but these errors were encountered: