[swift-evolution] [Pitch] Remove type inference for associated types
paulo at zewo.io
Wed Jun 29 00:47:08 CDT 2016
> On Jun 29, 2016, at 2:28 AM, Austin Zheng <austinzheng at gmail.com> wrote:
> I'm not sure this is a problem. Once you bind the associated types explicitly, the requirements using those associated types need to match the bound types otherwise the type checker will emit an error. If you have default associated types and default implementations, but then bind the associated types differently and do not update your type-specific implementations to use those other types, you will get an error message. This is how explicitly specifying associated types works today.
The problem is that it doesn’t give me any error message. I tested it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution