Created
October 19, 2011 17:27
-
-
Save aruld/1299020 to your computer and use it in GitHub Desktop.
Dart Reified Generics
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
| 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