Commit Graph

9 Commits

Author SHA1 Message Date
Anthony Latsis
3742da743c Sema: Result builder inference from dynamically replaced decl should look at getter, not storage 2024-10-11 03:44:42 +03:00
Anthony Latsis
daf69f221e [NFC] Redo and expand result builder inference tests 2024-10-11 03:44:42 +03:00
Anthony Latsis
16f97d7ccf Sema: Result builder inference from protocol req should look at getter, not storage 2024-10-11 03:44:42 +03:00
Anthony Latsis
c99657308c Sema: Result builder inference always favors explicit attr on storage decl 2024-10-11 03:44:42 +03:00
Anthony Latsis
14b70f306b DiagnosticVerifier: Default expected fix-it start line to the diagnostic's 2023-03-08 12:10:27 +03:00
Moritz Dietsche
5d55ffea51 [lib/Sema] Suggest return when the last statement would be a valid … (#42415)
* [lib/Sema] Suggest `return` when the last statement would be a valid return value

Addresses SR-10988. When a multi-statement function body contains no return keyword but the last statement would be a valid return value, the compiler currently proposes a fixit to add the return keyword.
This changes extends this behavior to functions with opaque return types.
2022-04-23 10:56:12 -07:00
willtunnels
d2138d089e Rename --enable-experimental-opaque-return-types and gate structural … (#38780)
* Rename --enable-experimental-opaque-return-types and gate structural opaque types with a flag

* Separate out structural opaque type result builder tests
2021-08-09 17:27:59 -04:00
willtunnels
319b3e64aa Add support for opaque result types in structural positions (#38392)
* [TypeResolver][TypeChecker] Add support for structural opaque result types

* [TypeResolver][TypeChecker] Clean up changes that add structural opaque result types
2021-08-03 23:45:02 -04:00
Doug Gregor
6d41524fe6 [SE-0289] Finish renaming source code, tests to "result builders" 2020-10-20 22:18:51 -07:00