<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Sure thing! I actually found someone who was running into a variation on the same theme. So I'll actually just include their minimal code.<br></div>
<div><br></div>
<div><a href="https://github.com/thoughtbot/Argo/pull/432">https://github.com/thoughtbot/Argo/pull/432</a><br></div>
<div><a href="https://travis-ci.org/ikesyo/Argo/builds/174070096">https://travis-ci.org/ikesyo/Argo/builds/174070096</a><br></div>
<div><a href="https://github.com/ikesyo/Argo/tree/829a727861e55eeb454b2c53c5793764f2cdc765/SwiftPMDemo">https://github.com/ikesyo/Argo/tree/829a727861e55eeb454b2c53c5793764f2cdc765/SwiftPMDemo</a><br></div>
<div><br></div>
<div>The attached example.tar.xz file contains all the source in the above example. It exhibits the same behavior. If you run `swift build` it fails. If you run `swift package generate-xcodeproj` and build in Xcode it compiles just fine.<br></div>
<div><br></div>
<div><br></div>
<div>On Mon, Nov 28, 2016, at 04:59 AM, Ankit Agarwal wrote:<br></div>
<blockquote type="cite"><div dir="ltr">Would you mind reducing this to a minimal package which can reproduce this issue?<br></div>
<div><div><br></div>
<div defang_data-gmailquote="yes"><div>On Sat, Nov 26, 2016 at 3:46 AM, Ryan Lovelett via swift-build-dev <span dir="ltr"><<a href="mailto:swift-build-dev@swift.org">swift-build-dev@swift.org</a>></span> wrote:<br></div>
<blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204, 204, 204);padding-left:1ex;" defang_data-gmailquote="yes"><div>I've got a package that I'm working on that is running into a weird<br></div>
<div> error. When I run `swift build` it is failing with:<br></div>
<div> <br></div>
<div> ```<br></div>
<div> /private/tmp/langserver-swift/<wbr>Sources/JSONRPC/Types/Request.<wbr>swift:54:46:<br></div>
<div> error: ambiguous use of operator '<|'<br></div>
<div> let dMethod: Decoded<String> = (json <| "method")<br></div>
<div> ^<br></div>
<div> Argo.<|:14:13: note: found this candidate<br></div>
<div> public func <|<A : Decodable where A == A.DecodedType>(json: Argo.JSON,<br></div>
<div> key: String) -> Argo.Decoded<A><br></div>
<div> ^<br></div>
<div> Argo.<|:14:13: note: found this candidate<br></div>
<div> public func <|<A : Decodable where A == A.DecodedType>(json: Argo.JSON,<br></div>
<div> key: String) -> Argo.Decoded<A><br></div>
<div> ```<br></div>
<div> <br></div>
<div> The problem is that when I tell SwiftPM to build an Xcode project for me<br></div>
<div> and build in Xcode then it compiles just fine. You can experience this<br></div>
<div> behavior for yourself in this repository:<br></div>
<div> <a href="https://github.com/RLovelett/langserver-swift">https://github.com/RLovelett/<wbr>langserver-swift</a><br></div>
<div> <br></div>
<div> Is this a bug in my Package.swift or with SwiftPM?<br></div>
<div> ______________________________<wbr>_________________<br></div>
<div> swift-build-dev mailing list<br></div>
<div> <a href="mailto:swift-build-dev@swift.org">swift-build-dev@swift.org</a><br></div>
<div> <a href="https://lists.swift.org/mailman/listinfo/swift-build-dev">https://lists.swift.org/<wbr>mailman/listinfo/swift-build-<wbr>dev</a><br></div>
</blockquote></div>
<div><br></div>
<div><br></div>
<div><br></div>
<div>-- <br></div>
<div><div>Ankit<br></div>
</div>
</div>
</blockquote><div><br></div>
</body>
</html>