A static method or property on a protocol already means something separate - that the types which implement that protocol that static method/property.
I’d recommend moving your factory method to another type or a global function? -DW > On Nov 15, 2016, at 10:10 AM, Reynaldo Aguilar Casajuana via swift-evolution > <swift-evolut...@swift.org> wrote: > > Hi. > I was thinking about a simple way of implementing the handling of > dependencies in swift and arrived to the following solution, however, > currently it isn't supported in swift. Can we get a way of making this work? > > http://stackoverflow.com/questions/40595621/getting-dependencies-using-static-members-in-protocol-in-swift > > <http://stackoverflow.com/questions/40595621/getting-dependencies-using-static-members-in-protocol-in-swift> > > > _______________________________________________ > swift-evolution mailing list > swift-evolut...@swift.org > https://lists.swift.org/mailman/listinfo/swift-evolution
_______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev