Skip to content

Conversation

@xedin
Copy link
Contributor

@xedin xedin commented Oct 27, 2025

…eferences

Update special favoring logic for unlabeled unary calls to support non-overloads member references in argument positions.

The original hack missed a case where a type of a member is known in advance (i.e. a property without overloads) because there as another hack (shrink) for that.

This helps in situations like Double(x) where x is a property of some type that is referenced using an implicit self. injected by the compiler.

Resolves: rdar://161419917

@xedin
Copy link
Contributor Author

xedin commented Oct 27, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Oct 27, 2025

@swift-ci please test source compatibility

…eferences

Update special favoring logic for unlabeled unary calls to support
non-overloads member references in argument positions.

The original hack missed a case where a type of a member is known
in advance (i.e. a property without overloads) because there as
another hack (shrink) for that.

This helps in situations like `Double(x)` where `x` is a property
of some type that is referenced using an implicit `self.` injected
by the compiler.

Resolves: rdar://161419917
@xedin
Copy link
Contributor Author

xedin commented Oct 27, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Oct 27, 2025

@swift-ci please test source compatibility debug

@xedin
Copy link
Contributor Author

xedin commented Oct 27, 2025

@swift-ci please test macOS platform

@xedin
Copy link
Contributor Author

xedin commented Oct 27, 2025

@swift-ci please test Windows platform

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.

2 participants