Skip to content

Instantly share code, notes, and snippets.

@timnew
Created August 2, 2023 23:53
Show Gist options
  • Save timnew/6dd6d53c34592860688a51a7e2f1144e to your computer and use it in GitHub Desktop.
Save timnew/6dd6d53c34592860688a51a7e2f1144e to your computer and use it in GitHub Desktop.
Dart override fails due to signature conflict
abstract class A {
@override
String toString({int param = 1}) => "A:$param";
}
mixin M {
String toString() => "M";
}
class B extends A with M {
}
void main(){
final b = B();
print(b.toString());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment