Skip to content

Deprecate single-parameter swizzle overloads - #15

Merged
davdroman merged 1 commit into
mainfrom
fix/variadic-generic-bugs
Sep 3, 2026
Merged

davdroman merged 1 commit into
mainfrom
fix/variadic-generic-bugs

Conversation

@davdroman

@davdroman davdroman commented Sep 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Deprecate the single-parameter function param: overloads in favor of params: and provide compiler rename fix-its.
  • Use the variadic overload in package examples and runtime tests.
  • Remove the obsolete compiler-workaround comments.

The original workaround addressed a single-element parameter-pack false positive fixed upstream by swiftlang/swift#64531 in commit b4937be. The fix prevents contextual pack-expansion types from being propagated into closure parameters, even when the pack contains one element.

Direct callers to the variadic params overload now that single-element packs type-check correctly. Update package examples and runtime coverage to use the canonical spelling.
@davdroman
davdroman force-pushed the fix/variadic-generic-bugs branch from 7333e19 to f2070d4 Compare September 3, 2026 10:41
@davdroman
davdroman merged commit 5293329 into main Sep 3, 2026
14 checks passed
@davdroman
davdroman deleted the fix/variadic-generic-bugs branch September 3, 2026 11:45
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.

1 participant