@@ -34,7 +34,7 @@ object MainAnnotation:
3434 /** The docstring of the parameter. Defaults to None. */
3535 val documentation : Option [String ],
3636 /** The default value that the parameter has. Defaults to None. */
37- val defaultValueOpt : Option [() => T ],
37+ val defaultValueGetterOpt : Option [() => T ],
3838 /** The ParameterAnnotations associated with the parameter. Defaults to Seq.empty. */
3939 val annotations : Seq [ParameterAnnotation ],
4040 ) {
@@ -46,10 +46,10 @@ object MainAnnotation:
4646 new ParameterInfos (name, typeName, documentation, Some (() => defaultValue), annotations)
4747
4848 def withDocumentation (doc : String ): ParameterInfos [T ] =
49- new ParameterInfos (name, typeName, Some (doc), defaultValueOpt , annotations)
49+ new ParameterInfos (name, typeName, Some (doc), defaultValueGetterOpt , annotations)
5050
5151 def withAnnotations (annots : ParameterAnnotation * ): ParameterInfos [T ] =
52- new ParameterInfos (name, typeName, documentation, defaultValueOpt , annots)
52+ new ParameterInfos (name, typeName, documentation, defaultValueGetterOpt , annots)
5353
5454 override def toString : String = s " $name: $typeName"
5555 }
0 commit comments