Sign in
fuchsia
/
third_party
/
swift
/
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-01-22-a
/
.
/
validation-test
/
compiler_crashers_2_fixed
/
0165-sr5427.swift
blob: 845d263b4ec35d31b5a5e0f424de6aca7fca8270 [
file
] [
log
] [
blame
]
// RUN: %target-typecheck-verify-swift
// Used to crash with: apply expression is not marked as throwing or
// non-throwing
struct
SR5427
:
Error
{}
func sr5427
(
op
:
(()
throws
->
Void
)?)
rethrows
{
try
op
?()
}
try
?
sr5427
(
op
:
{
throw
SR5427
()
})