mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
9 lines
242 B
Swift
9 lines
242 B
Swift
// RUN: %target-typecheck-verify-swift
|
|
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
|
|
|
|
protocol P : C {}
|
|
final class C : P {}
|
|
|
|
// CHECK: Generic signature: <T where T : P>
|
|
func foo<T : P>(_: T) {}
|