Sign in
fuchsia
/
third_party
/
swift
/
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2016-08-07-a
/
.
/
test
/
Generics
/
constrained_optional_params.swift
blob: 5ee65440c4df5c2320474a5fa9b1a402108ef6b1 [
file
] [
log
] [
blame
]
// RUN: %target-parse-verify-swift
protocol P
{
func method
()
->
Int
}
func address_only_bind
<
T
:
P
>(
x
:
T
?)
->
Int
{
let
y
=
x
!.
method
()
return
y
}