Sign in
fuchsia
/
third_party
/
swift
/
c3bbc625fb8d267414cf242f3fa800037a94e638
/
.
/
test
/
Generics
/
constrained_optional_params.swift
blob: ec3539cb5f0e7c722aaaea5d36a4fc7c2775ea71 [
file
] [
log
] [
blame
]
// RUN: %target-typecheck-verify-swift
protocol P
{
func method
()
->
Int
}
func address_only_bind
<
T
:
P
>(
x
:
T
?)
->
Int
{
let
y
=
x
!.
method
()
return
y
}