// RUN: %target-typecheck-verify-swift // RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s protocol P1 {} protocol P2 {} protocol IteratorProtocol { associatedtype Element func next() -> Element? } // CHECK: ExtensionDecl line={{[0-9]+}} base=LocalArray // CHECK: Generic signature: extension LocalArray where Element : P2 { static func ==(lhs: Self, rhs: Self) -> Bool {} } // CHECK: requirement_inference_funny_order.(file).LocalArray@ // CHECK: Generic signature: struct LocalArray: IteratorProtocol { func next() -> Element? {} }