Files
swift-mirror/test/Generics/rdar75691385.swift
Slava Pestov 4ae755e6fb GSB: Fix handling of layout requirements in stripBoundDependentMemberTypes()
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.
2021-03-28 00:10:06 -04:00

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 {}
}