Skip to content

Instantly share code, notes, and snippets.

@XavierChanth
Created September 28, 2023 19:51
Show Gist options
  • Save XavierChanth/c1eb0ad0dd5adee91c61522bda839db3 to your computer and use it in GitHub Desktop.
Save XavierChanth/c1eb0ad0dd5adee91c61522bda839db3 to your computer and use it in GitHub Desktop.
zealous-flash-8405
import 'dart:async';
void main() {
D().dispose();
}
abstract class A {
FutureOr<void> dispose();
}
abstract class B {
@override
Future<void> dispose() async {
print('B');
}
}
mixin C on B {
@override
Future<void> dispose() async {
print('C');
super.dispose();
}
}
class D extends B with C {
@override
Future<void> dispose() async {
print('D');
super.dispose();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment