mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Just because the type of the initializer expression is an opaque return type, does not mean it is the opaque return type *for the variable being initialized*. It looks like there is a bit of duplicated logic and layering violations going on so I only fixed one caller of openOpaqueType(). This addresses the test case in the issue. For the remaining calls I added FIXMEs to investigate what is going on. Fixes https://github.com/swiftlang/swift/issues/73245. Fixes rdar://127180656.
57 KiB
57 KiB