noAutoTupling

@compileTimeOnly("`noAutoTupling` can only be used at compile time in import statements") object noAutoTupling

Where imported, auto-tupling is disabled.

Where imported, auto-tupling is disabled.

Why control the feature? Auto-tupling can lead to confusing and brittle code in presence of overloads. In particular, surprising overloads can be selected, and adding new overloads can change which overload is selected in suprising ways.

Why allow it? Not allowing auto-tupling is difficult to reconcile with operators accepting tuples.

class Object
trait Matchable
class Any