Files
swift-mirror/test/DebugInfo
Konrad `ktoso` Malawski 0d3a4b44b8 [Concurrency] if let value on async value should be banned (not crash)
The issue is that the shorthand if let syntax injects an implicit
expression: https://github.com/apple/swift/pull/40694/ in ParseStmt and
that the 'diagnoseUnhandledAsyncSite' explicitly avoids reporting errors
in implicit expressions.

This change is that we don't mark the implicit declref code emitted by
the `if let prop` as implicit anymore, and this way the reporting works
out as expected.

Added some tests covering this as well as properly erroring out for the
nonexistent syntax of shortand + awaiting which doesn't exist, and we
properly error on it.

Resolves rdar://126169564
2024-06-19 17:20:18 +09:00
..
2024-02-24 07:25:59 -05:00
2023-10-06 13:55:33 -07:00
2023-08-23 16:32:19 -07:00
2023-06-29 16:16:56 -07:00
2023-06-29 16:16:56 -07:00
2021-10-12 16:53:30 -07:00
2024-06-12 23:07:25 -07:00