swift
d6fe6254 - [GenericEnvironment] Don't apply outer context substitutions before

Commit
2 years ago
[GenericEnvironment] Don't apply outer context substitutions before type.subst in mapTypeIntoContext. The outer context substitutions are already applied when invoking QueryInterfaceTypeSubstitutions. Applying the context substitutions before subst also causes problems because QueryInterfaceTypeSubstitutions will return a null type if given an archetype, which manifested with opened pack element environments.
Author
Parents
  • lib/AST
    • File
      GenericEnvironment.cpp
  • test/Constraints
    • File
      pack-expansion-expressions.swift