mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We had some cases where we weren't propagating failures to apply the solution, and as such weren't invalidating the resulting AST. Fix up these cases.
4 lines
334 B
Swift
4 lines
334 B
Swift
// {"kind":"typecheck","signature":"swift::ExprPatternMatchRequest::evaluate(swift::Evaluator&, swift::ExprPattern const*) const","signatureAssert":"Assertion failed: (EP->isResolved() && \"Must only be queried once resolved\"), function evaluate"}
|
|
// RUN: not %target-swift-frontend -typecheck %s
|
|
enum a { b(c : a){{guard case.b = c
|