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

Side by Side Diff: test/codegen/expect/sunflower/circle.js

Issue 1145243013: Check for duplicate library names (Closed) Base URL: https://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
OLDNEW
1 var circle = dart.defineLibrary(circle, {}); 1 dart.defineLibrary('circle');
2 var core = dart.import(core); 2 dart.import('core');
3 (function(exports, core) { 3 (function(exports, core) {
4 'use strict'; 4 'use strict';
5 class Circle extends core.Object { 5 class Circle extends core.Object {
6 Circle(x, y, radius) { 6 Circle(x, y, radius) {
7 this.x = x; 7 this.x = x;
8 this.y = y; 8 this.y = y;
9 this.radius = radius; 9 this.radius = radius;
10 } 10 }
11 } 11 }
12 dart.setSignature(Circle, { 12 dart.setSignature(Circle, {
13 constructors: () => ({Circle: [Circle, [core.num, core.num, core.num]]}) 13 constructors: () => ({Circle: [Circle, [core.num, core.num, core.num]]})
14 }); 14 });
15 // Exports: 15 // Exports:
16 exports.Circle = Circle; 16 exports.Circle = Circle;
17 })(circle, core); 17 })(circle, core);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698