mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
There was a silly typo here. Also add some asserts to the Requirement constructor to catch this if it happens again. Fixes rdar://problem/75691385.
14 lines
321 B
Swift
14 lines
321 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
|
|
|
|
protocol P {}
|
|
|
|
struct S : P {}
|
|
|
|
struct G<T : P> {}
|
|
|
|
extension G {
|
|
// CHECK-LABEL: Generic signature: <T, U where T == S, U : AnyObject>
|
|
func f<U>(_: U) where T == S, U : AnyObject {}
|
|
}
|