Index: test/codegen/expect/language/override_inheritance_no_such_method_test_04_multi.js |
diff --git a/test/codegen/expect/language/override_inheritance_no_such_method_test_04_multi.js b/test/codegen/expect/language/override_inheritance_no_such_method_test_04_multi.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..328b5a2648b686dd9e36da328e5c2a3a1521055f |
--- /dev/null |
+++ b/test/codegen/expect/language/override_inheritance_no_such_method_test_04_multi.js |
@@ -0,0 +1,39 @@ |
+dart_library.library('language/override_inheritance_no_such_method_test_04_multi', null, /* Imports */[ |
+ 'dart_sdk' |
+], function load__override_inheritance_no_such_method_test_04_multi(exports, dart_sdk) { |
+ 'use strict'; |
+ const core = dart_sdk.core; |
+ const dart = dart_sdk.dart; |
+ const dartx = dart_sdk.dartx; |
+ const override_inheritance_no_such_method_test_04_multi = Object.create(null); |
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))(); |
+ override_inheritance_no_such_method_test_04_multi.A = class A extends core.Object {}; |
+ override_inheritance_no_such_method_test_04_multi.I = class I extends core.Object {}; |
+ override_inheritance_no_such_method_test_04_multi.Class1 = dart.callableClass(function Class1(...args) { |
+ const self = this; |
+ function call(...args) { |
+ return self.call.apply(self, args); |
+ } |
+ call.__proto__ = this.__proto__; |
+ call.new.apply(call, args); |
+ return call; |
+ }, class Class1 extends override_inheritance_no_such_method_test_04_multi.A { |
+ noSuchMethod(_, __) { |
+ if (__ === void 0) __ = null; |
+ return null; |
+ } |
+ }); |
+ override_inheritance_no_such_method_test_04_multi.Class1[dart.implements] = () => [override_inheritance_no_such_method_test_04_multi.I]; |
+ dart.setSignature(override_inheritance_no_such_method_test_04_multi.Class1, { |
+ methods: () => ({noSuchMethod: dart.definiteFunctionType(dart.dynamic, [core.Invocation], [dart.dynamic])}) |
+ }); |
+ override_inheritance_no_such_method_test_04_multi.B = class B extends core.Object {}; |
+ override_inheritance_no_such_method_test_04_multi.Class2 = class Class2 extends override_inheritance_no_such_method_test_04_multi.B {}; |
+ override_inheritance_no_such_method_test_04_multi.main = function() { |
+ new override_inheritance_no_such_method_test_04_multi.Class1(); |
+ new override_inheritance_no_such_method_test_04_multi.Class2(); |
+ }; |
+ dart.fn(override_inheritance_no_such_method_test_04_multi.main, VoidTodynamic()); |
+ // Exports: |
+ exports.override_inheritance_no_such_method_test_04_multi = override_inheritance_no_such_method_test_04_multi; |
+}); |