# Why can \`any Shape\` not conform to \`Shape\`

**URL:** <https://forums.swift.org/t/why-can-any-shape-not-conform-to-shape/76392>\
**Category:** Using Swift\
**Tags:** generics\
**Created:** [December 5, 2024, 8:20am UTC](https://forums.swift.org/t/why-can-any-shape-not-conform-to-shape/76392 "2024-12-05T08:20:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Stan\_Smida](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/stan_smida/32/10999_2.png) [@Stan\_Smida](https://forums.swift.org/u/Stan_Smida)\
**Post date:** [December 5, 2024, 8:40am UTC](https://forums.swift.org/t/why-can-any-shape-not-conform-to-shape/76392/2 "2024-12-05T08:40:56Z")

</div>

Existential types don't have self-conformance, at least not yet. The topic was raised many times though (e.g. [here](https://forums.swift.org/t/allowing-self-conformance-for-protocols/39841)).

You may want to take a look at [Moving between any and some](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0352-implicit-open-existentials.md#moving-between-any-and-some) to fix your problem.  
`func flip(_ shape: some Shape) -> some Shape` will work.

---

_[View the full topic](https://forums.swift.org/t/why-can-any-shape-not-conform-to-shape/76392)._
