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

Side by Side Diff: test/codegen/expect/language/method_override2_test_none_multi.js

Issue 2128353002: Check in codegen test expectations. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 5 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 dart_library.library('language/method_override2_test_none_multi', null, /* Impor ts */[
2 'dart_sdk'
3 ], function load__method_override2_test_none_multi(exports, dart_sdk) {
4 'use strict';
5 const core = dart_sdk.core;
6 const dart = dart_sdk.dart;
7 const dartx = dart_sdk.dartx;
8 const method_override2_test_none_multi = Object.create(null);
9 let VoidToint = () => (VoidToint = dart.constFn(dart.definiteFunctionType(core .int, [])))();
10 method_override2_test_none_multi.I = class I extends core.Object {};
11 method_override2_test_none_multi.J = class J extends method_override2_test_non e_multi.I {};
12 method_override2_test_none_multi.K = class K extends method_override2_test_non e_multi.J {};
13 method_override2_test_none_multi.C = class C extends core.Object {
14 m(opts) {
15 let a = opts && 'a' in opts ? opts.a : null;
16 let b = opts && 'b' in opts ? opts.b : null;
17 core.print(dart.str`${a} ${b}`);
18 }
19 };
20 method_override2_test_none_multi.C[dart.implements] = () => [method_override2_ test_none_multi.I];
21 dart.setSignature(method_override2_test_none_multi.C, {
22 methods: () => ({m: dart.definiteFunctionType(dart.dynamic, [], {a: dart.dyn amic, b: dart.dynamic})})
23 });
24 method_override2_test_none_multi.D = class D extends core.Object {
25 m(opts) {
26 let c = opts && 'c' in opts ? opts.c : null;
27 let d = opts && 'd' in opts ? opts.d : null;
28 core.print(dart.str`${c} ${d}`);
29 }
30 };
31 dart.setSignature(method_override2_test_none_multi.D, {
32 methods: () => ({m: dart.definiteFunctionType(dart.dynamic, [], {c: dart.dyn amic, d: dart.dynamic})})
33 });
34 method_override2_test_none_multi.main = function() {
35 let c = new method_override2_test_none_multi.C();
36 c.m({a: "hello", b: "world"});
37 let d = new method_override2_test_none_multi.D();
38 d.m({c: "hello", d: "world"});
39 core.print(dart.str`${method_override2_test_none_multi.I.is(c)} ${method_ove rride2_test_none_multi.I.is(d)} ${method_override2_test_none_multi.I.is(d)} ${me thod_override2_test_none_multi.J.is(d)}`);
40 };
41 dart.fn(method_override2_test_none_multi.main, VoidToint());
42 // Exports:
43 exports.method_override2_test_none_multi = method_override2_test_none_multi;
44 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698