Check that a reference to an experimental definition with symbol sym meets cross-version constraints for @deprecated and @experimental.
sym
@deprecated
@experimental