blob: b69e36ab913ad61158873f1167aad104da82baec [file] [log] [blame] [view]
## fi-0155: Availability conflicts with parent {:#fi-0155}
This error occurs when you add an `@availability` attribute to a non-`library`
declaration that conflicts with the `library`'s declaration.
{% include "docs/reference/fidl/language/error-catalog/label/_bad.md" %}
```fidl
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0155-a.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
```
```fidl
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0155-b.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
```
To fix this error, update the `@availability` attributes to the required
constraints:
{% include "docs/reference/fidl/language/error-catalog/label/_good.md" %}
```fidl
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0155.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
```