Files
swift-mirror/test/multifile/protocol-conformance-let.swift
Slava Pestov 5e39f0354e Sema: Fix crash-on-invalid with 'let' property in protocol
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>.
2019-05-30 16:43:43 -04:00

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
}