Open swift-ci opened 3 years ago
@swift-ci create
@eeckstein gave this a try in the main branch and it looks like it works now. You could try a main branch snapshot from swift.org to see if the problem is resolved for you in your actual project.
Comment by 庄黛淳华 (JIRA)
The building crash issue still not fix in Xcode 12.2 and 12.3 beta(Apple Swift version 5.3.2 (swiftlang-1200.0.44.1 clang-1200.0.32.28))
Attachment: Download
Environment
macOS 10.15.6 Xcode 12.2 betaAdditional Detail from JIRA
| | | |------------------|-----------------| |Votes | 0 | |Component/s | CodeCompletion, Compiler | |Labels | Bug | |Assignee | miku1958 (JIRA) | |Priority | Medium | md5: 96551868b73c577121953990fee850b6Issue Description:
I removed the old description, and replaced the test project with a shortened version.
Xcode 12 builds with code like these will crash, including the 12.0 - 12.3 beta.
{code: swift}
@propertyWrapper
final class AlterKeys\<T> {
public var wrappedValue: T
public init(wrappedValue: @escaping @autoclosure () -> T, _ codingKeys: String...) {
self.wrappedValue = wrappedValue()
}
}
struct A {
// build fail in Xcode 12
@alterKeys("abc")
var key: Int = 0
}