Avatar
@swift-5.3.3 struct AError: Error {} struct BError: Error {} func foo() -> some Error { Bool.random() ? AError() as Error : BError() } print(foo())