Created with <3 with dartpad.dev.
Created
April 5, 2023 23:32
-
-
Save evanweible-wf/f9205b9e50895aaa81cb1e27419280bc to your computer and use it in GitHub Desktop.
dashing-kingdom-4998
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
| class DisposableWCommonV2 { | |
| Future<Null> onDispose() async {} | |
| } | |
| class DisposableWCommonV3 { | |
| Future<void> onDispose() async {} | |
| } | |
| class NullTypeOnV2 extends DisposableWCommonV2 { | |
| @override | |
| Future<Null> onDispose() async {} | |
| } | |
| class NullTypeOnV3 extends DisposableWCommonV3 { | |
| @override | |
| Future<Null> onDispose() async {} | |
| } | |
| class VoidTypeOnV2 extends DisposableWCommonV2 { | |
| // Invalid override, but would never happen (interface already exists, no one can consume it and type as Future<void>) | |
| // @override | |
| // Future<void> onDispose() async {} | |
| } | |
| class VoidTypeOnV3 extends DisposableWCommonV3 { | |
| @override | |
| Future<void> onDispose() async {} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment