mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Generic type aliases, unless desugared, could bring unrelated type variables into the scope i.e. `TypeAlias<$T, $U>.Context` is actually `_Context<$U>`. These variables could be inferrable only after the the body the closure is solved. To avoid that, let's adjust `TypeVariableRefFinder` to desugar types before collecting referenced type variables. Resolves: rdar://107835060
88 KiB
88 KiB