We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
md5: 9305bf730c400f6767cb374fd05fc847
Issue Description:
enum Either<T, U> { case first(T) case second(U) } @resultBuilder struct TupleBuilder { static func buildBlock() -> () { } static func buildEither<T: Tuple, U: Tuple>(first value: T) -> Either<T,U> { return .first(value) } static func buildEither<T: Tuple, U: Tuple>(second value: U) -> Either<T,U> { return .second(value) } } protocol Tuple { associatedtype Body: Tuple @TupleBuilder var body: Body { get } } func make<T>() -> T { fatalError() } extension Never: Tuple { var body: Never { return make() } } struct OneTuple: Tuple { var body: Never { return make() } } extension Either: Tuple where T: Tuple, U: Tuple { var body: Never { return make() } } struct NTuple<Element: Tuple>: Tuple { init(@TupleBuilder _ body: () -> Element) { } var body: some Tuple { return make() as OneTuple } } enum Kind { case first } struct Foo: Tuple { var constant: Kind var body: some Tuple { NTuple { OneTuple(). OneTuple() } } }
The text was updated successfully, but these errors were encountered:
@swift-ci create
Sorry, something went wrong.
No branches or pull requests
Additional Detail from JIRA
md5: 9305bf730c400f6767cb374fd05fc847
Issue Description:
The text was updated successfully, but these errors were encountered: