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