mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The root cause is that NormalProtocolConformance::forEachValueWitness() needs to skip protocol members that are not requirements. Otherwise we end up passing such a non-requirement member down to NormalProtocolConformance::getWitness() and hit an assert when we cannot find it. It looks like this code path was only ever hit from SourceKit. The fix moves TypeChecker::isRequirement() to a method on ValueDecl, and calls it in the right places. Fixes <https://bugs.swift.org/browse/SR-3815>.
5.5 KiB
5.5 KiB