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

Side by Side Diff: pkg/front_end/testcases/function_type_is_check.dart.strong.expect

Issue 2899693003: Fix crash with generalized function types in type tests. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
(Empty)
1 library;
2 import self as self;
3 import "dart:core" as core;
4 import "package:expect/expect.dart" as exp;
5
6 static method test(dynamic f) → dynamic {
7 if(f is (core::Object, core::StackTrace) → void)
8 return 1;
9 if(f is (core::Object) → void)
10 return 10;
11 if(f is () → void)
12 return 100;
13 }
14 static method main() → dynamic {
15 exp::Expect::equals(111, self::test(() → dynamic => null).+(self::test((core:: Object o) → dynamic => null)).+(self::test((core::Object o, core::StackTrace t) → dynamic => null)));
16 }
OLDNEW
« no previous file with comments | « pkg/front_end/testcases/function_type_is_check.dart.outline.expect ('k') | pkg/front_end/tool/fasta » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698