Skip to content
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

[SR-11756] @propertyWrapper with optional argument compiler trap #54163

Closed
swift-ci opened this issue Nov 10, 2019 · 0 comments
Closed

[SR-11756] @propertyWrapper with optional argument compiler trap #54163

swift-ci opened this issue Nov 10, 2019 · 0 comments

Comments

@swift-ci
Copy link
Collaborator

@swift-ci swift-ci commented Nov 10, 2019

Previous ID SR-11756
Radar None
Original Reporter pointum (JIRA User)
Type Bug
Status Resolved
Resolution Duplicate

Attachment: Download

Environment

macOS 10.15.1 (19B88)

Xcode 11.2 (11B52)

Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, PropertyWrappers, SILGen
Assignee None
Priority Medium

md5: cb3b7fcc170ae1ad1e2526b06c75072e

duplicates:

  • SR-11692 Compiler crash in property wrappers

Issue Description:

I’ve been devising a @propertyWrapper that has an argument that can be omitted and accepts the default value inline.

The wrapper crashes compiler when the variable is declared in a class and the argument is omitted. Does not happen when used as a static variable in enum or when providing the optional argument.

See attached code and crash report.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant