[swift-evolution] Proposal: Allow "flat" declaration of nested types

Derrick Ho wh1pch81n at gmail.com
Sun Nov 20 12:24:54 CST 2016


No problem Alexander!

On Sun, Nov 20, 2016 at 1:15 PM Alexander Doloz <adoloz at cayugasoft.com>
wrote:

> 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/a00fe7bc/attachment.html>


More information about the swift-evolution mailing list