Match Type Fails on Generic Type #17803
godenji
started this conversation in
Feature Requests
Replies: 2 comments
-
This is definitely a feature request. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Unless abstract type projections are reinstated, this feature would seem like quite a useful addition to the language. Sitting on two broken Scala 2 libraries here with no solution in sight... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Compiler version
3.1.0
Minimized code
Output
Expectation
That runtime concrete
T
resolvesGetType[T]
match to underlyingInt | Long | UUID
.Perhaps this a feature request (for lazy match types), and not a bug report, but regardless, for scenarios like this where only a type param is available (i.e. no value), it is impossible to replace removed Abstract Type Projections in Scala 3, which permanently breaks some Scala 2 libraries.
Beta Was this translation helpful? Give feedback.
All reactions