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

Side by Side Diff: test/codegen/expect/misc.js

Issue 1797063002: Resolve obvious deprecation warnings on bleeding edge (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Add test Created 4 years, 9 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
« no previous file with comments | « lib/src/utils.dart ('k') | test/codegen/misc.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dart_library.library('misc', null, /* Imports */[ 1 dart_library.library('misc', null, /* Imports */[
2 'dart/_runtime', 2 'dart/_runtime',
3 'dart/core' 3 'dart/core'
4 ], /* Lazy imports */[ 4 ], /* Lazy imports */[
5 ], function(exports, dart, core) { 5 ], function(exports, dart, core) {
6 'use strict'; 6 'use strict';
7 let dartx = dart.dartx; 7 let dartx = dart.dartx;
8 class _Uninitialized extends core.Object { 8 class _Uninitialized extends core.Object {
9 _Uninitialized() { 9 _Uninitialized() {
10 } 10 }
11 } 11 }
12 dart.setSignature(_Uninitialized, { 12 dart.setSignature(_Uninitialized, {
13 constructors: () => ({_Uninitialized: [_Uninitialized, []]}) 13 constructors: () => ({_Uninitialized: [_Uninitialized, []]})
14 }); 14 });
15 const UNINITIALIZED = dart.const(new _Uninitialized()); 15 const UNINITIALIZED = dart.const(new _Uninitialized());
16 const Generic$ = dart.generic(function(T) { 16 const Generic$ = dart.generic(function(T) {
17 class Generic extends core.Object { 17 class Generic extends core.Object {
18 get type() { 18 get type() {
19 return Generic$(); 19 return Generic$();
20 } 20 }
21 m() {
22 return core.print(T);
23 }
21 } 24 }
25 dart.setSignature(Generic, {
26 methods: () => ({m: [dart.dynamic, []]})
27 });
22 return Generic; 28 return Generic;
23 }); 29 });
24 let Generic = Generic$(); 30 let Generic = Generic$();
25 class Base extends core.Object { 31 class Base extends core.Object {
26 Base() { 32 Base() {
27 this.x = 1; 33 this.x = 1;
28 this.y = 2; 34 this.y = 2;
29 } 35 }
30 ['=='](obj) { 36 ['=='](obj) {
31 return dart.is(obj, Base) && obj.x == this.x && obj.y == this.y; 37 return dart.is(obj, Base) && obj.x == this.x && obj.y == this.y;
(...skipping 15 matching lines...) Expand all
47 const _escapeMap = dart.const(dart.map({'\n': '\\n', '\r': '\\r', '\f': '\\f', '\b': '\\b', '\t': '\\t', '\v': '\\v', '': '\\x7F', [`\${${expr}}`]: ''})); 53 const _escapeMap = dart.const(dart.map({'\n': '\\n', '\r': '\\r', '\f': '\\f', '\b': '\\b', '\t': '\\t', '\v': '\\v', '': '\\x7F', [`\${${expr}}`]: ''}));
48 function main() { 54 function main() {
49 core.print(dart.toString(1)); 55 core.print(dart.toString(1));
50 core.print(dart.toString(1.0)); 56 core.print(dart.toString(1.0));
51 core.print(dart.toString(1.1)); 57 core.print(dart.toString(1.1));
52 let x = 42; 58 let x = 42;
53 core.print(dart.equals(x, dart.dynamic)); 59 core.print(dart.equals(x, dart.dynamic));
54 core.print(dart.equals(x, Generic)); 60 core.print(dart.equals(x, Generic));
55 core.print(new (Generic$(core.int))().type); 61 core.print(new (Generic$(core.int))().type);
56 core.print(dart.equals(new Derived(), new Derived())); 62 core.print(dart.equals(new Derived(), new Derived()));
63 new (Generic$(core.int))().m();
57 } 64 }
58 dart.fn(main); 65 dart.fn(main);
59 // Exports: 66 // Exports:
60 exports.UNINITIALIZED = UNINITIALIZED; 67 exports.UNINITIALIZED = UNINITIALIZED;
61 exports.Generic$ = Generic$; 68 exports.Generic$ = Generic$;
62 exports.Generic = Generic; 69 exports.Generic = Generic;
63 exports.Base = Base; 70 exports.Base = Base;
64 exports.Derived = Derived; 71 exports.Derived = Derived;
65 exports.expr = expr; 72 exports.expr = expr;
66 exports.main = main; 73 exports.main = main;
67 }); 74 });
OLDNEW
« no previous file with comments | « lib/src/utils.dart ('k') | test/codegen/misc.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698