mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
- 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
21 lines
502 B
Swift
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 {}
|