Everything works well when protocols are defined within the single file. This feature started working in Swift 4.
When divided into two files(there are more protocols in our production code so it has to be that way) - compiler fails. I'm attaching project in which this behavior is happening.
I'll warn you that this isn't likely to be fixed in the Swift 4 timeframe, though—it's been a known issue for a while and if there were an easy solution I would have put it in already. :-(
Oh, okay, I understand 🙂 Good luck with fixing this! Is it possible to fit this fix in the 4.X release or Swift 5 is more realistic? Asking just in order to plan future releases.
Attachment: Download
Environment
Xcode 9 Beta 2, Swift 4.0
Additional Detail from JIRA
md5: 88e6dcd62f1028b82f4a7166bea38631
Issue Description:
I'm using associated types constraints in following way:
Everything works well when protocols are defined within the single file. This feature started working in Swift 4.
When divided into two files(there are more protocols in our production code so it has to be that way) - compiler fails. I'm attaching project in which this behavior is happening.
Also, please look at the log:
The text was updated successfully, but these errors were encountered: