Last active
March 20, 2024 08:05
-
-
Save osa1/ea8fe49ce2bc9bc50187a14e3679ffaa to your computer and use it in GitHub Desktop.
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
void main() { | |
final List<int> list = [1, 2, 3]; | |
final List<num> otherList = list; // unsound, but Dart allows | |
otherList.add(4.5); // unsoundness above requires runtime check here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment