Commit Graph

5 Commits

Author SHA1 Message Date
Pavel Yaskevich
5cb8604b60 [ConstraintSystem] De-prioritize solutions with Swift -> C pointer conversions
Just like other implicit conversions - always prefer solutions with
the lowest possible number of them.
2021-09-20 17:22:26 -07:00
Pavel Yaskevich
416388191f [TypeChecker] NFC: Enable Swift -> C implicit pointer conversions tests only on Darwin 2021-09-20 17:22:26 -07:00
Pavel Yaskevich
7c754ee753 [TypeChecker] NFC: Test Swift -> C pointer conversions for [U]Int8 pointers 2021-09-20 17:22:26 -07:00
Pavel Yaskevich
216f8a0146 [TypeChecker] NFC: Add test-cases for Swift -> C pointer conversions
Make sure that conversions are properly supported when arguments
either is wrapped in an optional type or requires a value-to-optional
promotion because parameter is optional pointer.
2021-09-20 17:22:26 -07:00
Pavel Yaskevich
621ea81e7b [ConstraintSystem] NFC: Add test-cases for interactions between Swift and C pointers 2021-09-20 17:22:25 -07:00