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() })