Conforming Swift object to ArrayLiteralConvertible initializer crashes SourceKit

Originator:dloewenherz
Number:rdar://27201820 Date Originated:06-Jul-2016 02:18 PM
Status:Open Resolved:
Product:Xcode Product Version:7.3.1 (7D1014)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
SourceKit always crashes when filling out the initializer to make an object conform to ArrayLiteralConvertible.

Steps to Reproduce:
1. Create a Playground.
2. Define the following class:

final class Radar: ArrayLiteralConvertible {
}

3. Observe that there are no crashes.
4. Make it conform to ArrayLiteralConvertible.

final class Radar: ArrayLiteralConvertible {

}

5. In the body of the class, start writing "ini" to autocomplete the initializer, and then select the correct autocomplete.

Expected Results:
Xcode completes the initializer and SourceKit does not crash.

Actual Results:
SourceKit crashes.

Version:
Xcode 7.3.1 (7D1014)
macOS 10.11.5 (15F34)

Notes:
See attached video and sample project.

Configuration:
iMac (Retina 5K, 27-inch, Late 2014)
4 GHz Intel Core i7
16 GB 1600 MHz DDR3
AMD Radeon R9 M295X 4096 MB


Attachments:
'Playground6Jul2016.playground.zip' and 'Radar6Jul2016.mov' 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!