mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Diagnostics] Add an educational note explaining closure type inference rules
This note explains the difference in type inference between single expression and non-single expression closures. It is associated with the "unable to infer complex closure return type" diagnostic.
This commit is contained in:
@@ -26,4 +26,7 @@ EDUCATIONAL_NOTES(non_nominal_extension, "nominal-types.md")
|
||||
EDUCATIONAL_NOTES(associated_type_witness_conform_impossible,
|
||||
"nominal-types.md")
|
||||
|
||||
EDUCATIONAL_NOTES(cannot_infer_closure_result_type,
|
||||
"complex-closure-inference.md")
|
||||
|
||||
#undef EDUCATIONAL_NOTES
|
||||
|
||||
Reference in New Issue
Block a user