Sign in
fuchsia
/
third_party
/
swift
/
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-09-21-a
/
.
/
test
/
SILGen
/
inout-existential-opened-type-function-conversion.swift
blob: 4fed09de497a5ff3291ce58d47c636a906a740bc [
file
] [
log
] [
blame
]
// RUN: %target-swift-frontend -emit-silgen -verify %s
protocol P
{
mutating func foo
(
_
:
(
Self
)
->
Void
)
}
func foo
(
x
:
inout P
)
{
x
.
foo
{
y
in
return
}
}