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

Unified Diff: pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_complex.dart.strong.expect

Issue 3006463002: Test some more complex cases of covariant generic parameters. (Closed)
Patch Set: Created 3 years, 4 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/runtime_checks/covariant_generic_parameter_complex.dart.outline.expect ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_complex.dart.strong.expect
diff --git a/pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_complex.dart.strong.expect b/pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_complex.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..a9761a6be050399d87c33aa9b083907721234d82
--- /dev/null
+++ b/pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_complex.dart.strong.expect
@@ -0,0 +1,26 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+class C<T extends core::Object> extends core::Object {
+ default constructor •() → void
+ : super core::Object::•()
+ ;
+ method f1(core::List<self::C::T> x) → void {}
+ method f2(() → self::C::T callback) → void {}
+ method f3((self::C::T) → self::C::T callback) → void {}
+ method f4((self::C::T) → void callback) → void {}
+}
+static method g1(self::C<core::num> c, core::List<core::num> l) → void {
+ c.{self::C::f1}(l);
+}
+static method g2(self::C<core::num> c, () → core::num callback) → void {
+ c.{self::C::f2}(callback);
+}
+static method g3(self::C<core::num> c, (core::num) → core::num callback) → void {
+ c.{self::C::f3}(callback);
+}
+static method g4(self::C<core::num> c, (core::num) → void callback) → void {
+ c.{self::C::f4}(callback);
+}
+static method main() → dynamic {}
« no previous file with comments | « pkg/front_end/testcases/runtime_checks/covariant_generic_parameter_complex.dart.outline.expect ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698