mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The protocol requirement storage declaration might not have accessors created for it if it was incorrectly declared as a 'let' property inside the protocol. There might be other cases where we had failed to synthesize the requirement's accessors, and crash here; this should hopefully make all of those more robust. Fixes <rdar://problem/48994271>.
6 lines
159 B
Swift
6 lines
159 B
Swift
// RUN: %target-swift-frontend -typecheck -verify -primary-file %s %S/Inputs/protocol-conformance-let-other.swift
|
|
|
|
public struct S : P {
|
|
public var x: Int
|
|
}
|