title: Initializing a generic Swift enum from another generic enum?
body: <p>I'm trying to write an initializer for my generic enum which takes Alamofire's generic Result enum and converts it to my own Result type. What I've come up with is the following:</p>
  
  <pre><code>public enum Result&lt;Value, Error: ErrorType&gt; {
      case Success(Value)
      case Failure(Error)
  
      public init(result: Alamofire.Result) {
          switch(result) {
          case Alamofire.Result.Success(let val):
              self = MyFramework.Result.Success(val)
          case Alamofire.Result.Failure(let err):
              self = MyFramework.Result.Failure(err)
          }
      }
  }
  </code></pre>
  
  <p>However I am running into the following error:</p>
  
  <pre><code>Cannot invoke 'Success' with an argument list of type '(Value)'
  </code></pre>