Since you are not adding Tuple , you are calling the += method with two parameters:
buffer += (3, 4) // is equivalent here to buffer.+=(3, 4)
And this method is defined both with varargs and without it and adds to the buffer everything that is given to it:
def +=(elem: A): ArrayBuffer.this.type def +=(elem1: A, elem2: A, elems: A*): ArrayBuffer.this.type
source share