Skip to content

[Property Wrappers] Don't inject the wrapped value placeholder in CSApply if the apply expression is a nullptr #33238

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

hborla
Copy link
Member

@hborla hborla commented Jul 31, 2020

The can happen for subscript calls because coerceCallArguments is called with a nullptr for the ApplyExpr.

This caused CSApply to inject the wrapped value placeholder around subscript arguments for subscript calls inside the wrapper attribute when no wrapped value is specified via =.

Resolves: rdar://problem/66045798

in CSApply if the apply expression is a nullptr.

The can happen for subscript calls because coerceCallArguments is
called with a nullptr ApplyExpr.
@hborla hborla requested a review from xedin July 31, 2020 21:19
@hborla
Copy link
Member Author

hborla commented Jul 31, 2020

@swift-ci please smoke test

@hborla hborla merged commit e35d2d3 into swiftlang:master Aug 1, 2020
@hborla hborla deleted the invalid-wrapped-value-placeholder-injection branch August 1, 2020 00:33
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