Support for reading annotations from the parameter itself is flimsy on Scala 2 and just terrible on Scala 3. We should spit out a warning whenever an @Id annotation is found on the parameter instead of the type.
Bad practice:
class X(
@Id("x") param: Int
)
Good practice:
class X(
param: Int @Id("x")
)