Trailing comma: new feature from Kotlin 1.4 #419
Labels
documentation
Improvements or additions to documentation
epic
Major feature, could be decomposed into smaller tasks
Kotlin 1.4 introduce the trailing comma feature. So we need to support it now not only for ENUMs as we did it before, but our code-style should force people to do this. For example:
same should be done for function calls/constructor arguments/e.t.c
Kotlin supports trailing commas in the following cases:
Enumerations
Value arguments
Class properties and parameters
Function value parameters
Parameters with optional type (including setters)
Indexing suffix
Lambda parameters
when entry
Collection literals (in annotations)
Type arguments
Type parameters
Destructuring declarations
The text was updated successfully, but these errors were encountered: