Skip to content

Conversation

@youngbash88
Copy link

@youngbash88 youngbash88 commented Dec 20, 2025

Resolves #54030.

@youngbash88 youngbash88 changed the title [Sema] Move anonymous closure argument check from parser to semantic … [Sema] Move anonymous closure argument check from parser to semantic analysis Dec 20, 2025
@slavapestov
Copy link
Contributor

@swift-ci Please smoke test

@slavapestov
Copy link
Contributor

Does ASTGen emit this diagnostic? If so it needs to be removed there as well.

@@ -0,0 +1,9 @@
// RUN: %target-typecheck-verify-swift
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be better to put this test in expr/closure and give it a better name, or merge it with one of the existing test files.

@slavapestov
Copy link
Contributor

Looks like some existing tests fail:

11:52:54  Failed Tests (2):
11:52:54    Swift(linux-x86_64) :: Parse/dollar_identifier.swift
11:52:54    Swift(linux-x86_64) :: expr/closure/closures.swift

Please run the test suite locally and take a look.

@youngbash88
Copy link
Author

Does ASTGen emit this diagnostic? If so it needs to be removed there as well.

It produces fatalError() here Expr.swift

Please run the test suite locally and take a look.

Sure, I'll update the PR tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SR-11619] Spurious error "anonymous closure argument not contained in a closure" in #if false

2 participants