Open nicolasstucki opened 11 months ago
you would have to lift out type parameters when you do the swap
The swap seems to be fundamentally broken. The scoping while swapping adds too many restrictions.
It seems that this and other use cases start working if we do not swap the parameters. They are sapped correctly at the call site. I will investigate further.
Compiler version
3.3.1
Minimized code
Output
The issue seems to come from how we handle type parameters
It should be the same as in
Expectation
Should compile