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

Crash on concrete typealias access through existential metatype

    XMLWordPrintable

    Details

      Description

      protocol P {
        typealias E = Int
      }
      func foo(meta1: P.Protocol, meta2: P.Type) {
        print(meta1.E.self)
        print(meta2.E.self) // crash
      }
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              slazarus Sam Lazarus
              Reporter:
              anthonylatsis Anthony Latsis
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: