Index: test/codegen/misc.dart |
diff --git a/test/codegen/misc.dart b/test/codegen/misc.dart |
index 8081cce4421a692abb240ca956eecd267cfa1831..774edbbff01f763ec63a65c2b8006c9f5899745d 100644 |
--- a/test/codegen/misc.dart |
+++ b/test/codegen/misc.dart |
@@ -7,9 +7,20 @@ |
const UNINITIALIZED = const _Uninitialized(); |
class _Uninitialized { const _Uninitialized(); } |
+class Generic<T> { |
+ Type get type => Generic; |
+} |
+ |
main() { |
// Number literals in call expressions. |
print(1.toString()); |
print(1.0.toString()); |
print(1.1.toString()); |
+ |
+ // Type literals, #184 |
+ dynamic x = 42; |
+ print(x == dynamic); |
vsm
2015/05/18 20:27:56
If you had plain "Generic" as a id outside, you'd
Jennifer Messerly
2015/05/18 20:41:14
yup! added example
that's the beauty of plumbing
|
+ |
+ // Should be Generic<dynamic> |
+ print(new Generic<int>().type); |
} |