Created
March 4, 2021 11:19
-
-
Save gaetschwartz/97285babbffb11219b5298224c51e805 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
void main() async { | |
final a = A(); | |
print(a is N); | |
print(a is M); | |
} | |
mixin M { | |
int get number => 20; | |
} | |
mixin N { | |
String get text => 'Foo'; | |
} | |
class Mixed = Object with N, M; | |
class A with Mixed {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment