mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We iterate over the DenseMap and simplify both types appearing in the key. If multiple keys simplify to the same type, later keys overwrite earlier keys, so the outcome depends on hash table order. Fix this by introducing an arbitrary tie break: we prefer the highest-numbered restriction. Fixes rdar://146780049.
2.0 KiB
2.0 KiB