Similar to what happens with newtypes in #4, I guess this is related.
This works:
type MyId = String Refined Uuid
sealed trait Yay
object Yay {
case class Foo(x: Int) extends Yay
case class Bar(y: MyId, z: String) extends Yay
}
Check[Yay]
This doesn't:
sealed trait Yay
object Yay {
type MyId = String Refined Uuid
case class Foo(x: Int) extends Yay
case class Bar(y: MyId, z: String) extends Yay
}
Check[Yay]
Similar to what happens with
newtypes
in #4, I guess this is related.This works:
This doesn't: