<div dir="ltr">Would you mind reducing this to a minimal package which can reproduce this issue?</div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 26, 2016 at 3:46 AM, Ryan Lovelett via swift-build-dev <span dir="ltr">&lt;<a href="mailto:swift-build-dev@swift.org" target="_blank">swift-build-dev@swift.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;ve got a package that I&#39;m working on that is running into a weird<br>
error. When I run `swift build` it is failing with:<br>
<br>
```<br>
/private/tmp/langserver-swift/<wbr>Sources/JSONRPC/Types/Request.<wbr>swift:54:46:<br>
error: ambiguous use of operator &#39;&lt;|&#39;<br>
        let dMethod: Decoded&lt;String&gt; = (json &lt;| &quot;method&quot;)<br>
                                             ^<br>
Argo.&lt;|:14:13: note: found this candidate<br>
public func &lt;|&lt;A : Decodable where A == A.DecodedType&gt;(json: Argo.JSON,<br>
key: String) -&gt; Argo.Decoded&lt;A&gt;<br>
            ^<br>
Argo.&lt;|:14:13: note: found this candidate<br>
public func &lt;|&lt;A : Decodable where A == A.DecodedType&gt;(json: Argo.JSON,<br>
key: String) -&gt; Argo.Decoded&lt;A&gt;<br>
```<br>
<br>
The problem is that when I tell SwiftPM to build an Xcode project for me<br>
and build in Xcode then it compiles just fine. You can experience this<br>
behavior for yourself in this repository:<br>
<a href="https://github.com/RLovelett/langserver-swift" rel="noreferrer" target="_blank">https://github.com/RLovelett/<wbr>langserver-swift</a><br>
<br>
Is this a bug in my Package.swift or with SwiftPM?<br>
______________________________<wbr>_________________<br>
swift-build-dev mailing list<br>
<a href="mailto:swift-build-dev@swift.org">swift-build-dev@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-build-dev" rel="noreferrer" target="_blank">https://lists.swift.org/<wbr>mailman/listinfo/swift-build-<wbr>dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Ankit<br><br></div>
</div>