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

Skip to content

Catchable should be Thenable. #17

@mlch911

Description

@mlch911

we should be able to do this.

attempt {
  // something
  return 0
}.catch { error in
  print(error)
}.then { value in  // here we got a error: Reference to member 'then' cannot be resolved without a contextual type
  print(value)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions