Last active
February 8, 2020 01:47
-
-
Save nishtahir/0e8a126bf379cbb45bd9d9235bc288cd to your computer and use it in GitHub Desktop.
The Dart type system is weird
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() { | |
List<String> test = ["hello"]; | |
print("expected: true, actual : ${test is List<String>}"); | |
print("expected: false, actual : ${test is List<int>}"); | |
print("expected: false, actual : ${test is List<void>}"); | |
print("expected: true, actual : ${test is List<dynamic>}"); | |
print("Welcome to the void..."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment