Instantly share code, notes, and snippets.

Embed
What would you like to do?
Dart Reified Generics
main() {
print(new List<String>() is <Object>();//true
print(new List<Object>() is List<String>);//false
print(new List<String>() is List<int>);//false
print(new List<String>() is List);//true
print(new Map() is Map<String,String>);//true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment