mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The best substitutions we can easily find in nested functions for captured local variables are the forwarding substitutions of the current environment. These should be fine for type-substitution purposes but do not necessarily match the generic signature of the original variable's environment, which can trip these assertions. Unfortunately, I can't think of an easy way to weaken these assertions sufficiently to cover this case. This should fix the source-compat suite regression reported in rdar://107642925.
14 KiB
14 KiB