checkConformance(to:declaredBy:)

private mutating func checkConformance(
  to trait: TraitType, declaredBy origin: ConformanceOrigin
)

Type checks the conformance to trait declared by origin.

Requires

Conformances to traits strictly refined by trait have already been checked.

Parameters

trait

A trait belonging to the refinement closure of a trait mentioned origin.

origin

A declaration introducing a conformance to trait.