Avatar
Avatar
Iceman
@swift-5.7.3 @swift-5.6.3 @swift-5.3.3 public protocol DependencyKey { associatedtype Value } public struct GenericDependencyKey<T>: DependencyKey { public typealias Value = T public init() {} } extension DependencyKey where Self == GenericDependencyKey<Value> { static var `default`: Self { GenericDependencyKey<Value>() } }
exit status: 1 with stderr:<stdin>:11:36: error: same-type constraint 'Self' == 'GenericDependencyKey<Self.Value>' is recursive extension DependencyKey where Self == GenericDependencyKey<Value> { ^