报告可被替换为显式 Type.of(...) 调用的集合字面量。

示例:


class MyCustomList<T> {
    companion object { operator fun <T> of(vararg elements: T): MyCustomList<T> = TODO() }
}

val nums: MyCustomList<Int> = [1, 2, 3]

应用修正后:


val nums = MyCustomList.of(1, 2, 3)