Files
swift-mirror/include/swift/AST/EducationalNotes.def
Owen Voorhees 72fba7db8a Merge pull request #30153 from owenv/protocol-can-only-be-used-as-a-constraint-because-it-has-self-or-associated-type-requirements-oh-no
[Diagnostics] Add edu note explaining limitations of protocols with assoc. type reqs.
2020-03-10 14:48:39 -07:00

50 lines
1.9 KiB
C++

//===-- EducationalNotes.def - Diagnostic Documentation Content -*- C++ -*-===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
//
// This file associates diagnostics with relevant educational notes which
// explain important concepts.
//
//===----------------------------------------------------------------------===//
#ifndef EDUCATIONAL_NOTES
# error Must define EDUCATIONAL_NOTES
#endif
// EDUCATIONAL_NOTES(DIAG_ID, EDUCATIONAL_NOTE_FILENAMES...)
EDUCATIONAL_NOTES(unsupported_existential_type,
"associated-type-requirements.md")
EDUCATIONAL_NOTES(non_nominal_no_initializers, "nominal-types.md")
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")
EDUCATIONAL_NOTES(invalid_dynamic_callable_type,
"dynamic-callable-requirements.md")
EDUCATIONAL_NOTES(missing_dynamic_callable_kwargs_method,
"dynamic-callable-requirements.md")
EDUCATIONAL_NOTES(property_wrapper_no_value_property,
"property-wrapper-requirements.md")
EDUCATIONAL_NOTES(property_wrapper_wrong_initial_value_init,
"property-wrapper-requirements.md")
EDUCATIONAL_NOTES(property_wrapper_failable_init,
"property-wrapper-requirements.md")
EDUCATIONAL_NOTES(property_wrapper_type_requirement_not_accessible,
"property-wrapper-requirements.md")
#undef EDUCATIONAL_NOTES