Skip to content

Instantly share code, notes, and snippets.

@aruld
Created October 19, 2011 17:27
Show Gist options
  • Select an option

  • Save aruld/1299020 to your computer and use it in GitHub Desktop.

Select an option

Save aruld/1299020 to your computer and use it in GitHub Desktop.
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