Xcode-beta (7A165t): Abort trap 6 compiling Swift code

Originator:glebd70
Number:rdar://22003613 Date Originated:27-Jul-2015 01:36 AM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode-beta (7A165t)
Classification:Crash/Hang/Data Loss Reproducible:Always
 
Summary:
When compiling the attached file CocoaFobLicVerifier.swift, Xcode produces an error: “Command failed due to signal: Abort trap: 6”. The log starts with: “Assertion failed: (TypeVariables[impl.getGraphIndex()] == typeVar && "Type variable mismatch"), function lookupNode, file /Library/Caches/com.apple.xbs/Sources/swiftlang/swiftlang-700.0.47.4/src/swift/lib/Sema/ConstraintGraph.cpp, line 49.”

Steps to Reproduce:
1. Compile the attached file CocoaFobLicVerifier.swift

Expected Results:
The file compiles.

Actual Results:
Xcode produces the error report included in the archive as error.log

Regression:
The file was compiling with Xcode 7b3.

Notes:
The test project is attached.

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!