mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
8 lines
247 B
Swift
8 lines
247 B
Swift
// 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() })
|