Sign in
fuchsia
/
third_party
/
swift
/
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-01-13-a
/
.
/
validation-test
/
Sema
/
type_checker_crashers_fixed
/
rdar28221883.swift
blob: 1f453ec8fe6092bdc97b86c42fe1471d5b9f043d [
file
] [
log
] [
blame
]
// RUN: not %target-swift-frontend %s -typecheck
typealias F
=
(
inout
Int
?)
->
Void
class
C
{
var
s
:
[
String
:
Any
?]
=
[:]
}
class
K
<
T
>
{
init
(
with
:
@escaping
(
T
,
F
)
->
Void
)
{}
}
// Related: SR-2994
_
=
K
{
(
c
:
C
?,
fn
:
F
)
in
fn
(&(
c
.
s
[
"hi"
]))
}