Commit Graph

4 Commits

Author SHA1 Message Date
Holly Borla
e3655f51c9 [CSApply] Perform a regular coerceToType when adjusting types for
preconcurrency.
2023-12-19 08:14:52 -08:00
Holly Borla
8713d78704 [PrintOptions] Print explicit 'any' in SIL. 2022-08-18 01:15:12 -04:00
Doug Gregor
91998f66f7 [Constriant solver] Don't adjust types in calls to @preconcurrency functions
When calling a `@preconcurrency` function, don't adjust the types of
parameters. Instead, we'll suppress or alter diagnostics later on to deal
with Sendable and global-actor mismatches.

Fixes the crash from rdar://95995193, but diagnostics need more work.
2022-07-01 11:04:25 -07:00
Doug Gregor
0674058ba0 Introduce more AST function conversions for @preconcurrency-adjusted types.
When referring to a `@preconcurrency` function as a value, use the normal
type for the initial declaration reference and then introduce an
appropriate function conversion expression to the adjusted type.

Fixes more issues related to rdar://94597323.
2022-06-30 17:00:56 -07:00