Looks like the handleSome method no longer works with Scala 3. I tried with Scala versions 3.0.2 and 3.1.0 and with both the included test for handleSome results in a long error output that includes the following message:
java.lang.AssertionError: assertion failed: orphan parameter reference: TypeParamRef(E2) while compiling .../union-dotty/src/test/scala/io/github/michaelt293/union/TestProgram.scala
Do you have an idea how that could be fixed?
And thanks for creating this repo—it's a great example of the usefulness of union types!
Looks like the
handleSome
method no longer works with Scala 3. I tried with Scala versions 3.0.2 and 3.1.0 and with both the included test forhandleSome
results in a long error output that includes the following message:Do you have an idea how that could be fixed?
And thanks for creating this repo—it's a great example of the usefulness of union types!