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

Referencing a protocol function crashes the compiler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Medium
    • Resolution: Done
    • Component/s: Compiler
    • Labels:
    • Environment:

      Xcode 7.1.1

      Description

      The following code will crash the compiler

      protocol MyProtocol {
          func myFunc() -> String
      }
      
      let f = MyProtocol.myFunc
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              slavapestov Slava Pestov
              Reporter:
              Sephiroth87 Fabio Ritrovato
              Votes:
              4 Vote for this issue
              Watchers:
              17 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: