Given how difficult it is to know whether an arithmetic final val expression will be compiled to a compile-time constant, and how easy it is to accidentally break compile-ti
You phrased your question as being about determining whether a value is being in-line expanded at points of reference, but it seems though you're actually looking for a way to guarantee it. Is that correct?
If you make it a def that's annotated for in-line expansion (@inline) you might get what you want.
@inline def TwentyTwo = 22