The @available
attribute's replaced
argument cannot be used on a library declaration:
{% include “docs/reference/fidl/language/error-catalog/label/_bad.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0204.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
Instead, use the removed
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-0204.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
The replaced
argument indicates that an element is replaced by a new definition. This is not supported for an entire library, since we assume each library only has one set of files that defines it.
See FIDL versioning to learn more about versioning.