Created
December 5, 2023 13:04
-
-
Save iapicca/2966ef8545140a396e7d7a4c86febbdb to your computer and use it in GitHub Desktop.
salvadorini's bug
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
import 'dart:math'; | |
abstract class Foo {} | |
class Bar implements Foo { | |
const Bar(); | |
} | |
class Baz implements Foo { | |
const Baz(); | |
} | |
class Fizz extends Bar implements Baz { | |
const Fizz(); | |
} | |
class RiverpodRocks extends Bar implements Baz { | |
const RiverpodRocks(); | |
} | |
void main() { | |
final Baz baz = | |
Random().nextInt(2).isEven ? const Fizz() : const RiverpodRocks(); | |
print(baz.runtimeType); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
workaround