This error occurs when you use a bad combination of added
, deprecated
, and remove
arguments for an @available
attribute. The following constraints must be respected:
added
must be less than or equal to deprecated
deprecated
must be less than removed
added
must be less than removed
{% include “docs/reference/fidl/language/error-catalog/label/_bad.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0154-a.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0154-b.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
To fix this issue update the added
, deprecated
, and removed
arguments to the required ordering:
{% include “docs/reference/fidl/language/error-catalog/label/_good.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0154-a.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0154-b.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}