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

Side by Side Diff: dart/type_variable_function_type_test.dart

Issue 57773002: Repro for OOM bug in test.dart (applies to r29345). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_rti.dart ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 typedef T Func<T>();
2
3 class Foo<S> {
4 m(x) => x is Func<S>;
5 }
6
7 class Bar<T> {
8 f() {
9 T local() {}
10 return local;
11 }
12 }
13
14 void main() {
15 var x = new Foo<List<String>>();
16 if (new DateTime.now().millisecondsSinceEpoch == 42) x = new Foo<int>();
17 print(x.m(new Bar<String>().f()));
18 print(x.m(new Bar<List<String>>().f()));
19 }
OLDNEW
« no previous file with comments | « dart/sdk/lib/_internal/lib/js_rti.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698