// RUN: %target-swift-frontend -emit-ir %s | %FileCheck %s // RUN: %target-swift-frontend -emit-ir -O %s | %FileCheck %s protocol Foo { associatedtype T func acceptEvent(event: T) } protocol FooFactory { associatedtype T func makeFoo() -> any Foo } class Bar { private var foo: (any Foo) init(fooFactory: any FooFactory) { self.foo = fooFactory.makeFoo() } } // CHECK-NOT: swift_getExtendedExistentialTypeMetadata