void (String[] args) { // normal case: trailing comma is preserved int[] i = { 1, 2, }; // all on one line: trailing comma is removed by Kotlin formatter int[] j = {1, 2,}; // weird case with empty array: comma is removed (this syntax is invalid in Kotlin) int[][] k = {{,}, {,}}; }