blob: aba9b6dcb05813980a0b7aff8fd66181a3c4740e [file] [log] [blame]
40 columns |
>>> Operator declaration.
class A {
bool operator == ( Object other ) => true ;
int operator + ( int other ) { return value + other ; }
int operator - ( ) { return - value ; }
}
<<<
class A {
bool operator ==(Object other) =>
true;
int operator +(int other) {
return value + other;
}
int operator -() {
return -value;
}
}