Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0165-sr5427.swift
2018-06-29 09:35:01 -07:00

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