Open vanvoorden opened 1 month ago
cc @grynspan @DougGregor
I am able to reproduce this failure. confirmation()
is rethrows
, and it looks like the type checker (rethrows checker?) isn't picking up on the throw in the closure body. Changing to typed throws did not resolve the issue.
Tracked internally as rdar://133743501.
Description
https://forums.swift.org/t/try-expect-throwing-or-expect-try-throwing/73076/
This is a confusing error-slash-warning when a throwing function is nested in a test expectation (which is then nested in a test confirmation closure).
Reproduction
Here is the error:
Here is a workaround:
Environment
swift-driver version: 1.111.2 Apple Swift version 6.0 (swiftlang-6.0.0.5.15 clang-1600.0.22.6) Target: arm64-apple-macosx14.0