[swift-evolution] Proposal: Allow "flat" declaration of nested types
Alexander Doloz
adoloz at cayugasoft.com
Sun Nov 20 12:15:25 CST 2016
Frankly speaking I didn’t know it’s possible with extensions :) Thank you for answer, it will be helpful for my project.
Since this method works my proposal no longer makes much sense.
> 20 нояб. 2016 г., в 21:05, Derrick Ho <wh1pch81n at gmail.com> написал(а):
>
> struct A {
> var a = 0
> }
>
> extension A {
> struct B {
> var b = "Bee"
> }
> }
>
> extension A.B {
> struct C {
> var c = 0
> func someFunc() {
> print("something")
> }
> }
> }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161120/96a20194/attachment.html>
More information about the swift-evolution
mailing list