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

Compiler crash - overriding an optional property with non-optional can crash the compiler

    Details

      Description

      See enclosed project:

      The property "rect" is declared optional in one file, and non-optional in an override in a subclass. This causes the compiler to crash. I realize this is not legal, but it took me a while to track it down since the compiler crashes before showing the error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                slavapestov Slava Pestov
                Reporter:
                mkbrandt Matt Brandt
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: