You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Match type reduction failed since selector T matches none of the cases
case C[(true : Boolean)] => (true : Boolean)
case C[(false : Boolean)] => (false : Boolean)
Expectation
The code should compile. In fact there are many small tweaks that make it compile. For example:
This issue was picked for the Issue Spree No. 27 of 07 March 2023 which takes place in a week from now. @dwijnand, @mbovel, @jan-pieter, @nmcb will be working on it. If you have any insight into the issue or guidance on how to fix it, please leave it here.
Compiler version
3.2.2
Minimized code
https://scastie.scala-lang.org/MPU8IU46Q1GRYjcYu13S1g
Output
Compilation error:
Expectation
The code should compile. In fact there are many small tweaks that make it compile. For example:
case _
in the match type (even though this case is not used in the end): https://scastie.scala-lang.org/U7Tlij41Q6e9D28zxCJlZAT <: C[?]
inf
: https://scastie.scala-lang.org/tVg5WBVbTlKVsv9v7PLHOwf(b)
into a val: https://scastie.scala-lang.org/tKqK9MMBQ6SNnwmmftuBlwf
when calling it: https://scastie.scala-lang.org/TyLKSgn9QISZDPiyfoqj0QThe text was updated successfully, but these errors were encountered: