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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/testcases/function_type_is_check.dart.strong.expect
diff --git a/pkg/front_end/testcases/function_type_is_check.dart.strong.expect b/pkg/front_end/testcases/function_type_is_check.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..47e328147ee916b26313e3590fe1d5d8b6957b45
--- /dev/null
+++ b/pkg/front_end/testcases/function_type_is_check.dart.strong.expect
@@ -0,0 +1,16 @@
+library;
+import self as self;
+import "dart:core" as core;
+import "package:expect/expect.dart" as exp;
+
+static method test(dynamic f) → dynamic {
+ if(f is (core::Object, core::StackTrace) → void)
+ return 1;
+ if(f is (core::Object) → void)
+ return 10;
+ if(f is () → void)
+ return 100;
+}
+static method main() → dynamic {
+ 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)));
+}
« 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