specialize(_:for:in:)

mutating func specialize(
  _ generic: AnyType, for specialization: GenericArguments, in scopeOfUse: AnyScopeID
) -> AnyType

Returns generic with occurrences of parameters keying specialization replaced by their corresponding value, performing necessary name lookups from scopeOfUse.

This method has no effect if specialization is empty.