Files
swift-mirror/test/Generics/identity_conformance.swift
2022-05-10 12:56:17 -04:00

14 lines
427 B
Swift

// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
// CHECK-LABEL: identity_conformance.(file).P1@
// CHECK: Requirement signature: <Self where Self == Self.[P1]X>
protocol P1 {
associatedtype X : P1 where X == Self
}
// CHECK-LABEL: identity_conformance.(file).P2@
// CHECK: Requirement signature: <Self where Self == Self.[P2]X>
protocol P2 {
associatedtype X where X == Self
}