FB11244375: Xcode shows an error message when importing a module that declares a typealias to a protocol with a primary associated type
Xcode 14beta5 shows a message stating that "An internal error occurred. Source editor functionality is limited. Attempting to restore..." when importing a module that declare a typealias to a protocol with a primary associated type (and where the alias specifies the primary associated type, generically or not).
To reproduce, create a SwiftPM package with two modules A
and B
having A
as a dependency.
In the module A
, declare:
public protocol Foo<Bar> {
associatedtype Bar
}