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

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

Issue 1173023004: fixes #217, Object members on extension types (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 6 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/codegen/js_codegen.dart ('k') | tool/sdk_expected_errors.txt » ('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('misc', null, /* Imports */[ 1 dart.library('misc', null, /* Imports */[
2 'dart/core' 2 'dart/core'
3 ], /* Lazy imports */[ 3 ], /* Lazy imports */[
4 ], function(exports, core) { 4 ], function(exports, core) {
5 'use strict'; 5 'use strict';
6 class _Uninitialized extends core.Object { 6 class _Uninitialized extends core.Object {
7 _Uninitialized() { 7 _Uninitialized() {
8 } 8 }
9 } 9 }
10 dart.setSignature(_Uninitialized, { 10 dart.setSignature(_Uninitialized, {
11 constructors: () => ({_Uninitialized: [_Uninitialized, []]}) 11 constructors: () => ({_Uninitialized: [_Uninitialized, []]})
12 }); 12 });
13 let UNINITIALIZED = dart.const(new _Uninitialized()); 13 let UNINITIALIZED = dart.const(new _Uninitialized());
14 let Generic$ = dart.generic(function(T) { 14 let Generic$ = dart.generic(function(T) {
15 class Generic extends core.Object { 15 class Generic extends core.Object {
16 get type() { 16 get type() {
17 return Generic$(); 17 return Generic$();
18 } 18 }
19 } 19 }
20 return Generic; 20 return Generic;
21 }); 21 });
22 let Generic = Generic$(); 22 let Generic = Generic$();
23 function main() { 23 function main() {
24 core.print(dart[dartx.toString](1)); 24 core.print(dart.toString(1));
25 core.print(dart[dartx.toString](1.0)); 25 core.print(dart.toString(1.0));
26 core.print(dart[dartx.toString](1.1)); 26 core.print(dart.toString(1.1));
27 let x = 42; 27 let x = 42;
28 core.print(dart.equals(x, core.Object)); 28 core.print(dart.equals(x, core.Object));
29 core.print(dart.equals(x, Generic)); 29 core.print(dart.equals(x, Generic));
30 core.print(new (Generic$(core.int))().type); 30 core.print(new (Generic$(core.int))().type);
31 } 31 }
32 dart.fn(main); 32 dart.fn(main);
33 // Exports: 33 // Exports:
34 exports.UNINITIALIZED = UNINITIALIZED; 34 exports.UNINITIALIZED = UNINITIALIZED;
35 exports.Generic$ = Generic$; 35 exports.Generic$ = Generic$;
36 exports.Generic = Generic; 36 exports.Generic = Generic;
37 exports.main = main; 37 exports.main = main;
38 }); 38 });
OLDNEW
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698