E027: Varargs Parameter Must Come Last

This error is emitted when a varargs (variable arguments) parameter is not the last parameter in a method's parameter list.

The compiler message states: "varargs parameter must come last"

In Scala, a varargs parameter is declared using * after the type (e.g., args: String*). The varargs field must be the last field in the method signature. Attempting to define a field in a method signature after a varargs field is an error.

This restriction exists because varargs can accept zero or more arguments at runtime, so having additional parameters after it would make the call syntax ambiguous.

Note: This error code is active in the compiler and is triggered during parsing when validating parameter lists. The exact syntax to reproduce this error in modern Scala 3 requires further investigation, as the parser may produce different errors for malformed parameter lists.