mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The openType() function did two things: - Replace unbound generic types like 'G' with fresh type variables applied to bound generic types, like 'G<$T0>'. - Replace generic parameters with type variables from the replacement map. The two behaviors were mutually exclusive and never used from the same call site, so split them up into two independent functions. Also, eliminate ConstraintSystem::openBindingType() since it was only used in one place and could be expressed in terms of existing functions.
127 KiB
127 KiB