Sign in
fuchsia
/
third_party
/
swift
/
71a72524247bb050f1d9d9eb69085c221ea6e61a
/
.
/
test
/
Constraints
/
inherited_generic_conformance.swift
blob: cb5e9cce988d06c3ad81013406ce111cdb2c964f [
file
] [
log
] [
blame
]
// RUN: %target-swift-frontend -typecheck -verify %s
protocol P
{}
class
GenericBase
<
T
>:
P
{}
class
Derived
:
GenericBase
<
Int
>
{}
func foo
<
T
:
P
>(
_ x
:
T
)
{}
foo
(
Derived
())