Back to Intellij Community

GrNamedVariantLabels

plugins/groovy/groovy-psi/resources/inspectionDescriptions/GrNamedVariantLabels.html

2025.3-rc-2239 B
Original Source

Reports unresolved argument labels in calls of methods annotated by @NamedVariant/@NamedParam/@NamedDelegate.

Example:

@groovy.transform.NamedVariant
  def foo(a, b) {}

  // unresolved label 'c'
  foo(a: 1, b: 2, c: 3)