[SR-11756] @propertyWrapper with optional argument compiler trap #54163
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
property wrappers
Feature: property wrappers
SILGen
Area → compiler: The SIL generation stage
Attachment: Download
Environment
macOS 10.15.1 (19B88)
Xcode 11.2 (11B52)
Additional Detail from JIRA
md5: cb3b7fcc170ae1ad1e2526b06c75072e
duplicates:
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.
The text was updated successfully, but these errors were encountered: