Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1759)

Unified Diff: test/codegen/functions.dart

Issue 1143253003: Check whether type parameters are loaded before emitting (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Handle typedef case as well Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/codegen/expect/functions.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/functions.dart
diff --git a/test/codegen/functions.dart b/test/codegen/functions.dart
new file mode 100644
index 0000000000000000000000000000000000000000..967f335f40ff3013f77c19b3894dd50aa0dc7b76
--- /dev/null
+++ b/test/codegen/functions.dart
@@ -0,0 +1,14 @@
+List<Foo> bootstrap() {
+ return <Foo>[new Foo()];
+}
+
+typedef B A2B<A, B>(A x);
+
+A2B<Foo, Foo> id(A2B<Foo, Foo> f) => f;
+
+class Foo {
+}
+
+void main() {
+ print(bootstrap()[0]);
+}
« no previous file with comments | « test/codegen/expect/functions.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698