Closed rnapier closed 5 months ago
Minimized a bit more:
protocol P {
associatedtype X
var x: X { get set }
}
func foo(_ x: any P) {
var x = x
_ = x.x
}
cc @xedin
Looks like:
rdar://121214563 is tracking fixing this internally
Duplicate of #62219
Description
The following code crashes the 6.0.0.3.300 compiler, but is successfully compiled by the 5.10.0.13 compiler.
Reproduction
Stack dump
Expected behavior
This code should compile.
Environment
swift-driver version: 1.90.11.1 Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4) Target: arm64-apple-macosx14.0
Additional information
No response