Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@vigoo
Copy link
Contributor

@vigoo vigoo commented Jan 12, 2023

The following assertion currently does not work with Scala 3:

val exit = Exit.success(1)
assertTrue(exit.isSuccess)

Fails because Select.unique cannot decide between def isSuccess: Boolean on Exit and def isSuccess(implicit trace: Trace): Boolean on ZIO.

Tried Select.overloaded instead but that also fails saying the method has no overloads.

So the proposed workaround in case unique does not work tries to find the method in the direct type of the LHS and selects that.

@adamgfraser adamgfraser merged commit 3a226a2 into zio:series/2.x Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants