When renaming an element with the @available
argument renamed
, the new name cannot be the same as the element's original name:
{% include “docs/reference/fidl/language/error-catalog/label/_bad.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0213.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
To fix the error, remove the renamed
argument:
{% include “docs/reference/fidl/language/error-catalog/label/_good.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0213-a.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
Alternatively, keep the renamed
argument but choose a different name:
{% include “docs/reference/fidl/language/error-catalog/label/_good.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0213-b.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
See FIDL versioning to learn more about versioning.