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

Unified Diff: pkg/front_end/testcases/inference_new/multiple_interface_inheritance.dart.direct.expect

Issue 3010483002: Add tests demonstrating bugs #30547 and #30552. (Closed)
Patch Set: Mark interface classes as abstract 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
Index: pkg/front_end/testcases/inference_new/multiple_interface_inheritance.dart.direct.expect
diff --git a/pkg/front_end/testcases/inference_new/multiple_interface_inheritance.dart.direct.expect b/pkg/front_end/testcases/inference_new/multiple_interface_inheritance.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..7aa999891bacfa39dadbc224bb6da51490172f0d
--- /dev/null
+++ b/pkg/front_end/testcases/inference_new/multiple_interface_inheritance.dart.direct.expect
@@ -0,0 +1,48 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+abstract class I1 extends core::Object {
+ default constructor •() → void
+ : super core::Object::•()
+ ;
+ abstract method f(core::int i) → void;
+}
+abstract class I2 extends core::Object {
+ default constructor •() → void
+ : super core::Object::•()
+ ;
+ abstract method f(core::Object o) → void;
+}
+abstract class C extends core::Object implements self::I1, self::I2 {
+ default constructor •() → void
+ : super core::Object::•()
+ ;
+}
+class D extends self::C {
+ default constructor •() → void
+ : super self::C::•()
+ ;
+ method f(core::Object o) → void {}
+}
+abstract class E extends core::Object implements self::I2, self::I1 {
+ default constructor •() → void
+ : super core::Object::•()
+ ;
+}
+class F extends self::E {
+ default constructor •() → void
+ : super self::E::•()
+ ;
+ method f(core::Object o) → void {}
+}
+static method g1(self::C c) → void {
+ c.f("hi");
+}
+static method g2(self::E e) → void {
+ e.f("hi");
+}
+static method main() → dynamic {
+ self::g1(new self::D::•());
+ self::g2(new self::F::•());
+}

Powered by Google App Engine
This is Rietveld 408576698