nameof(property) in Obsolete-Attribute causes builds to fail

Hello everyone,
is it normal behaviour to fail builds with stuff like:

[Obsolete(nameof(_displayName) + "will be removed in the future and is replaced by " + nameof(_displayText), false)]
[SerializeField, HideInInspector]
private string _displayName = default;

With CS-Error (line 29 is the first line shown above):
Assets\Scripts\SomeScript.cs(29,103): error CS0103: The name ‘_displayText’ does not exist in the current context

While it runs just fine in Editor-Playmode?
Haven’t used Obsolete much before this seems strange to me.

Might it be stripped by IL2CPP build-process, which would be odd too, since it is used excessively by other scripts already?

Nevermind, I’m an idiot,

_displayText was accidentally surrounded by #if UNITY_EDITOR :sweat_smile:

Thread can be closed/deleted by a mod