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

Compiler Crash - Protocol Function Reference

    XMLWordPrintable

    Details

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

      Description

      Link to stack overflow issue: https://stackoverflow.com/questions/45539925/why-does-swift-not-compile-when-referring-to-protocol-method-directly#45540040

       

      The issue is when referring to a protocol function directly such as:

      protocol Test {

          func test() 

      }

      let testFunc = Test.test // Segmentation fault 11

       

      The compiler does not give any feedback, please see the playground for more info.

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              JustinGuedes Justin Guedes
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: