SI-8498 @compileTimeOnly should be aware of bridge methods.

Values classes, for example, will create bridges to a `@compileTimeOnly`
method (the bridge is also marked `@compileTimeOnly`), which should not
throw an error. Calling the bridge or the method will anyway.
I can remove it, the test doesn't need it.

I only added it because that's the way it was done above for `@deprecated` (line 1290), so I supposed there was some subtle cases (unknown to me) where it could happen.