mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Setting this to Self.AsyncIterator.Failure doesn't work because we replace it with its reduced type Self.Failure, and then if you run a binary compiled against an older version of the stdlib that does not declare the Failure associated type, we hit infinite recursion while instantiating the witness table and trying to populate the default type witness. Instead, let's set the default to `any Error`. Associated type inference is already smart enough to infer the type witness from the AsyncIterator's Failure type; we don't need to rely on the default mechanism for that. Fixes rdar://129605725.
20 KiB
20 KiB