Re: [swift-users] Custom operators from a module

2017-09-06 Thread Howard Lovatt via swift-users
Thanks Jordan. Turns out I had two problems: 1. I had used ~> which is used in the library (but Xcode didn't tell me about the redefinition). 2. Once Xcode had decided that there was an error it wouldn't clear; but when I quit Xcode and went back in it went away. Thanks for your suggestion of

Re: [swift-users] Custom operators from a module

2017-09-06 Thread Howard Lovatt via swift-users
I have a custom operator defined in a module and in my XCTest I import that module. In the tests the compiler says that the operator isn't defined. If I define the operator manually in the tests then it works. So what is going on? -- Howard. > On 7 Sep 2017, at 3:45 am, Jordan Rose wrote: >

Re: [swift-users] Custom operators from a module

2017-09-06 Thread Jordan Rose via swift-users
I just tried it myself with a framework and app target and it worked. Can you reproduce what you’re seeing in a simple project and file a bug report at https://bugs.swift.org ? Sorry for the trouble! Jordan > On Sep 6, 2017, at 13:35, Howard Lovatt wrote: > > I have

Re: [swift-users] Custom operators from a module

2017-09-06 Thread Jordan Rose via swift-users
It's actually the other way around: all operator declarations are exported from a module, all the time, even if the functions that implement them aren't. This is probably a model we should improve, but it's been that way since Swift 1. Jordan > On Sep 6, 2017, at 02:08, Howard Lovatt via swift