Sign in
fuchsia
/
third_party
/
swift
/
ad82fe6c700ee1593e8c0b2db88075561c46d4c9
/
.
/
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
())