# Does the new Swift 5.5 init(projectedValue:) functionality not work with synthesized memberwise initializers?

**URL:** <https://forums.swift.org/t/does-the-new-swift-5-5-init-projectedvalue-functionality-not-work-with-synthesized-memberwise-initializers/51232>\
**Category:** Compiler\
**Created:** [August 16, 2021, 12:50am UTC](https://forums.swift.org/t/does-the-new-swift-5-5-init-projectedvalue-functionality-not-work-with-synthesized-memberwise-initializers/51232 "2021-08-16T00:50:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Jumhyn](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/jumhyn/32/3891_2.png) [@Jumhyn](https://forums.swift.org/u/Jumhyn)\
**Post date:** [August 16, 2021, 2:53pm UTC](https://forums.swift.org/t/does-the-new-swift-5-5-init-projectedvalue-functionality-not-work-with-synthesized-memberwise-initializers/51232/3 "2021-08-16T14:53:16Z")

</div>

I'm sure Holly will be able to fill in more detail or correct me if I'm wrong about anything, but IIRC SE-0293 didn't change the behavior of the synthesized memberwise initializer with regards to wrapped properties at all. That is, if `Wrapper` provides an `init(wrappedValue:)` then the memberwise initializer for a type like:

```swift
struct S {
  @Wrapper
  var x: Int
}

```

still has a signature of `init(x: Int)`, _not_ `init(@Wrapper x: Int)`. We'd probably need another proposal to update the interaction of property wrappers with the memberwise initializer, and whenever such a proposal comes around I think there's some [other ways](https://forums.swift.org/t/allow-property-wrappers-with-multiple-arguments-to-defer-initialization-when-wrappedvalue-is-not-specified/38319/2) we can improve the model too.

As far as:

> [@mattcurtis](#):
>
> it seems like property wrappers with `init(projectedValue:)` initializers don't work _at all_ when used in another type's `init()` , synthesized or not. The compiler crashes.

It looks like this was reported as [SR-15033](https://bugs.swift.org/browse/SR-15033) and fixed by [PR #38854](https://github.com/apple/swift/pull/38854).

---

_[View the full topic](https://forums.swift.org/t/does-the-new-swift-5-5-init-projectedvalue-functionality-not-work-with-synthesized-memberwise-initializers/51232)._
