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

crash in libswiftCore.dylib`swift::gatherWrittenGenericArgs:

    XMLWordPrintable

    Details

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

      Xcode 10 and Xcode 11 beta6 all have this issue

      Description

      I try to write code like this:

      extension UIView

      {     class _Delegate<View> where View: UIView

      {     }

      }

      extension UITextView

      {     class Delegate: UIView._Delegate1<UITextView>

      {      }

      }

      and it work fine when these two extension in the same file,

      but once I move one of them into an new file, it crash in:

      type metadata accessor for UITextView.Delegate:
      libswiftCore.dylib`swift::gatherWrittenGenericArgs:
      

      when I init a UITextView.Delegate object.

      You can try these code in sample Xcode project. I am not sure is it Xcode bug or swift bug

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            miku1958 庄黛淳华
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: