Overriding an extension in iOS Playgrounds causes bad instruction error

Originator:conradwt
Number:rdar://19411242 Date Originated:08-Jan-2015 04:03 AM
Status:Closed Resolved:Xcode 6.3/(6D570)
Product:Developer Tools Product Version:Xcode 6.1.1/6A2008a & OS X 10.10.1/14B25
Classification:Other Bugs Reproducible:Always
 
Summary:
When overriding an extension in an iOS Playground, it causes a EXC_BAD_INSTRUCTION when instantiating an instance.  For example,  

import Cocoa
import Foundation

class Base { }

extension Base {
  @objc var foo: String { return "foo" }
}

class Sub: Base {
  override var foo: String { return "FOO" } // This no longer errors
}

var object = Sub()
object.foo

However, this issue doesn't happen in a OS X Playground.  Next, I'm including the Playgrounds for both iOS and OS X for review.

Steps to Reproduce:
Please see the iOS Playground attachment.

Expected Results:
I would expect that it would exhibit similar behavior as the OS X Playground example.

Actual Results:
The iOS Playground generates a bad instruction error.

Version:
Xcode 6.1.1/6A2008a & OS X 10.10.1/14B25

Notes:


Configuration:


Attachments:
'overriding-extensions-ios.playground.zip' and 'overriding-extensions-osx.playground.zip' were successfully uploaded.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!