The following code compiles and works as expected on Scala 2.13.x, but fails on 3.0.0-RC1:
import eu.timepit.refined.numeric._
import eu.timepit.refined.api.Refined
import eu.timepit.refined.auto._
val x: Int Refined Positive = 5
[error] -- [E007] Type Mismatch Error
[error] |Found: (5 : Int)
[error] |Required: eu.timepit.refined.api.Refined[Int, eu.timepit.refined.numeric.Positive]
It looks like the 2.x macros haven't been ported to Scala 3 yet.
The following code compiles and works as expected on Scala
2.13.x, but fails on3.0.0-RC1:It looks like the 2.x macros haven't been ported to Scala 3 yet.