[swift-users] Using 'SomeProtocol' as a concrete type conforming to protocol 'SomeProtocol' is not supported
Brandon Knope
bknope at me.com
Wed Dec 28 17:41:54 CST 2016
I don’t understand why this is a problem
protocol Element {
}
enum ElementNode<T: Element> {
case element(T)
case empty
}
var childElements = [ElementNode<Element>]()
I need to represent an array of my nodes that could be multiple kinds of elements
Is there a workaround?
Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20161228/d338dc76/attachment.html>
More information about the swift-users
mailing list