// RUN: %target-typecheck-verify-swift // We used to crash -- https://github.com/apple/swift/issues/69318 public protocol View { associatedtype NodeChildren: ViewGraphNodeChildren } public protocol ViewGraphNodeChildren { associatedtype ParentView: View where ParentView.NodeChildren == Self // expected-note@-1 {{protocol requires nested type 'ParentView'}} } public protocol ChildlessView: View where NodeChildren == EmptyViewGraphNodeChildren {} // expected-error@-1 {{circular reference}} public struct EmptyViewGraphNodeChildren: ViewGraphNodeChildren {} // expected-note@-1 3{{through reference here}} // expected-error@-2 {{type 'EmptyViewGraphNodeChildren' does not conform to protocol 'ViewGraphNodeChildren'}} // expected-note@-3 {{add stubs for conformance}}