Created
August 2, 2023 23:53
-
-
Save timnew/6dd6d53c34592860688a51a7e2f1144e to your computer and use it in GitHub Desktop.
Dart override fails due to signature conflict
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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