[SR-12013] ‘wrappedValue’ not being the first parameter of initializers of Property Wrapper makes mixed initialization invalid #54450
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
Attachment: Download
Environment
Xcode 11.3 (11C29) Playground
Apple Swift version 5.1.3 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
Target: x86_64-apple-darwin18.7.0
Additional Detail from JIRA
md5: 291e78349afba012c209e9db4140d930
Issue Description:
The Swift language reference does not mention that 'wrappedValue' must be the first parameter of initializers of Property Wrapper. In the above snippet, although the 'wrappedValue' is not the first parameter of the initializer, the code output the desired result as following:
But if we use mixed form of syntactic sugar for initialization of Property Wrapper, then errors occurs.
The text was updated successfully, but these errors were encountered: