Protocols can only refer to transport ends (client_end
and server_end
) of protocols over the same transport. For example, a protocol using the Syscall transport cannot refer to a client end of a protocol using the Driver transport:
{% include “docs/reference/fidl/language/error-catalog/label/_bad.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/bad/fi-0118.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}
To fix the error, remove the transport end member:
{% include “docs/reference/fidl/language/error-catalog/label/_good.md” %}
{% includecode gerrit_repo="fuchsia/fuchsia" gerrit_path="tools/fidl/fidlc/tests/fidl/good/fi-0118.test.fidl" exclude_regexp="\/\/ (Copyright 20|Use of|found in).*" %}