plusAssign operator function to add an item to a mutable list.
var attendances: MutableList<Attendance> = mutableListOf() attendances += Attendance(request.newTime)
But it has a compiler error shown by IntelliJ IDEA which says:
Assignment operators ambiguity. All these functions match
It this a kotlin bug?
Note: If I change the
val the error will be resolved.