Open
Description
The following compiles, but fails at runtime with EXC_BAD_INSTRUCTION:
struct S: Error {}
func baz() throws { throw S() }
func foo(_ fn: () throws -> Void) rethrows {
func bar() throws {
try baz()
}
try bar()
}
foo({})
We shouldn't allow try baz()
to count as a conditional throw for rethrowing checking.
rdar://104605214