Commit 472c047
authored
Add test for StackOverflow question 68877939 (#21775)
https://stackoverflow.com/q/68877939/21927647
Answer to the question:
> You were not doing anything wrong, this was an implementation
limitation.
>
> Your example compiles successfully since Scala 3.4, thanks to the
changes introduced in SIP-56 "Proper specification for match types"
([text](https://docs.scala-lang.org/sips/match-types-spec.html#:~:text=This%20SIP%20proposes%20a%20proper,the%20specification%20of%20the%20language.),
[PR](#18262)).1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments