What is the expected behavior of Tuple.InverseMap
in presence of a type alias in Scala 3.4+?
#21534
arainko
started this conversation in
General Discussion
Replies: 1 comment 2 replies
-
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've been playing around with use cases of match types after 3.4 and came up with this puzzler:
The behavior is the same with
-experimental
andimport scala.language.experimental.betterMatchTypeExtractors
in scope.For context - I've ran into this after incorporating a similar pattern in ducktape which is currently on 3.3.3, however it was pointed out to me (here) that the way I intended for it to be used doesn't really work in 3.4+ so I went investigating.
What's the fundamental difference between
and
that makes one of them actually work and the other one don't?
Beta Was this translation helpful? Give feedback.
All reactions