Created
September 6, 2020 17:58
-
-
Save Grohden/446a283dff9e653f571677a8c94eac00 to your computer and use it in GitHub Desktop.
Tricking type system with variance stuff
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() { | |
var list = ['Jonny', 'Gabriel']; | |
Iterable list2 = Set<String>(); | |
list = list2; | |
list.sort(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment