Files
swift-mirror/test/Generics/rdar79570734.swift
Slava Pestov b4b873332f Update -requirement-machine-* flags in various tests
- Don't pass 'verify' since it's now the default
- Update tests where diagnostics changed in a correct way to pass 'on' instead
- Delete compiler_scale/explicit_requirements_perf.swift since it's not testing anything with the requirement machine
2022-03-31 15:57:36 -04:00

21 lines
502 B
Swift

// RUN: %target-typecheck-verify-swift
// RUN: %target-swift-frontend -typecheck %s -debug-generic-signatures 2>&1 | %FileCheck %s
public protocol P1 {
associatedtype A
}
public protocol P2 {}
public struct S1: P1 {
public typealias A = S2
}
public struct S2: P2 {}
// CHECK-LABEL: Generic signature: <X, Y where X : P1, Y : P2, Y == X.[P1]A>
public struct G<X: P1, Y: P2> where Y == X.A {}
// CHECK-LABEL: Generic signature: <X, Y where X == S1, Y == S2>
public extension G where X == S1 {}