fi-0013: Invalid wrapped type {:#fi-0013}

This error occurs when the value passed to an enum or bits declaration isn't an identifier for a type, such as when you instead provide a string value as the “backing type”:

{% include “docs/reference/fidl/language/error-catalog/label/_bad.md” %}

{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0013.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}

To fix this error, make sure the backing type for the enum or bits is a type identifier.

{% include “docs/reference/fidl/language/error-catalog/label/_good.md” %}

{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0013.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}

Note: If the value provided as the backing type is an identifier but is not the identifier of one of the supported backing types, it will instead cause fi-0070: Enum Type Must Be Integral Primitive.