ReactiveCocoa: 4.0.1 possibly breaks semver?

Since 4.0.1 removes the NoError type in favor of Result’s implementation, after carthage update from version 4.0.0, none of my files with:

  • import ReactiveCocoa, no import Result, and NoError used somewhere.
  • explicit ReactiveCocoa.NoError referenced (which I originally added to fix compiler ambiguity in files with both import ReactiveCocoa and import Result when using ReactiveCocoa 4.0.0 and Result 1.0.2, both of which define NoError).

…compile anymore. For the first, I need to add import Result, and for the second I need to remove the ReactiveCocoa. prefix.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments

It seems that this works:

import enum Result.NoError

public typealias NoError = Result.NoError

but this doesn’t:

import Result

public typealias NoError = Result.NoError

I didn’t even know import enum was a thing!