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

"is" (and "as?") with an unknown target type calls swift_unknownRetain

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Component/s: Compiler
    • Labels:

      Description

      Given the attached test case, I would not expect test2 to do any refcounting (and indeed, if I call it directly rather than indirecting through test3, it does not do any refcounting). SIL attached as well for convenience.

      refcount.sil

      main.swift

        Attachments

        1. main.swift
          0.4 kB
        2. refcount.sil
          6 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Catfish_Man David
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: