Consider the following protocol:
public protocol Foo<Value> {
associatedtype Value
}
/// @mockable
public protocol NarrowFoo: Foo where Value == Int {}
The generated mock for it is
public final class NarrowFooMock<Value>: NarrowFoo where Value == Int {
public init() { }
}
Which produces the following warning (in Swift 5 language mode):
Same-type requirement makes generic parameter 'Value' non-generic; this is an error in the Swift 6 language mode
Consider the following protocol:
The generated mock for it is
Which produces the following warning (in Swift 5 language mode):