Inheritance from the Actor protocol in protocol declarations requires conforming types to be actors. This PR handles this edge case correctly by opting for an actor mock implementation declaration if required. Additionally, the given(), when() and verify() helpers are marked as nonisolated in actor implementations.
Inheritance from the
Actor
protocol in protocol declarations requires conforming types to be actors. This PR handles this edge case correctly by opting for anactor
mock implementation declaration if required. Additionally, thegiven()
,when()
andverify()
helpers are marked asnonisolated
in actor implementations.