Uploaded image for project: 'Swift'
  1. Swift
  2. SR-1446

Nested generics

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Compiler
    • Labels:
      None

      Description

      From the Generics Manifesto:

      Currently, a generic type cannot be nested within another generic type, e.g.

      struct X<T> {
        struct Y<U> { }  // currently ill-formed, but should be possible
      }
      

      There isn't much to say about this: the compiler simply needs to be improved to handle nested generics throughout.

        Attachments

          Activity

            People

            • Assignee:
              slavapestov Slava Pestov
              Reporter:
              hartbit David Hart
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: