Parameter untupling can be prevented with indirection #21778
Labels
area:match-types
area:typer
itype:bug
stat:fixed in next
The issue was fixed in Next and only still applies to LTS.
Compiler version
3.3.4
Minimized code
doesn't work:
works:
Output
Expectation
I expect parameter untupling to occur regardless of type indirection, as long as the type can be fully resolved where the parameter untupling should occur. Instead, parameter untupling does not always occur. I think the alias and the
match
type are both playing a role here: simply having two aliases that refer to a concrete tuple type (type T = (Int, String)
,type X = T
) does not prevent parameter untuplingThe text was updated successfully, but these errors were encountered: