[SR-1529] Compiler crash - overriding an optional property with non-optional can crash the compiler Created: 15 May 2016  Updated: 17 May 2017  Resolved: 17 May 2017

Status: Closed
Project: Swift
Component/s: Compiler

Type: Bug Priority: Medium
Reporter: Matt Brandt Assignee: Slava Pestov
Resolution: Done Votes: 0
Labels: CompilerCrash

Attachments: Zip Archive crasher.zip    
Issue Links:
is duplicated by SR-1980 Emit multiple vtable entries for over... Resolved
Radar URL: rdar://problem/32254285


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.

Comment by Slava Pestov [ 26 Mar 2017 ]


Comment by Myke Olson [ 17 May 2017 ]

(Disabled Apple Sync System) create

Generated at Wed Jan 23 14:31:13 CST 2019 using Jira 7.13.0#713000-sha1:fbf406879436de2f3fb1cfa09c7fa556fb79615a.