> On Feb 6, 2017, at 10:06 AM, Anton Zhilin via swift-evolution 
> <[email protected]> wrote:
> 
> If I understand correctly, extension of a typealias should be strictly 
> equivalent to extension of type on the right:
> 
> extension Any<class> {
>     func foo()
> }
> And Any<...> are not nominal types, so until we additionally allow extensions 
> for non-nominal types, this will not compile.
> 
        
Right.

Note that we capriciously banned extending AnyObject so y’all couldn’t sneak in 
code that would prevent AnyObject from turning into “an existential describing 
values of class type” :)

        - Doug
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to