'P<Int>' cannot be used within a protocol-constrained type

Is this expected to work?

class C {}
protocol P<T> { associatedtype T }

let foo: any C & P<Int>  // error: Non-protocol, non-class type 'P<Int>' cannot
                         //        be used within a protocol-constrained type

Edit: It should.

1 Like