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

Unified Diff: pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js

Issue 2869733006: Revert "Revert "fix #27256, track type bounds for generic functions"" (Closed)
Patch Set: Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/script.js ('k') | pkg/dev_compiler/test/codegen_expected/varargs.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
diff --git a/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js b/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
index 6692e4b04155e68cc68c02a0ad44d18d54409409..a03a4eb1494d5fc6c322ef3f34ec8c530ec3f9ba 100644
--- a/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
+++ b/pkg/dev_compiler/test/codegen_expected/sunflower/sunflower.js
@@ -8,9 +8,9 @@ define(['dart_sdk'], function(dart_sdk) {
const sunflower = Object.create(null);
const circle = Object.create(null);
const painter = Object.create(null);
- let StringToElement = () => (StringToElement = dart.constFn(dart.definiteFunctionType(html.Element, [core.String])))();
- let EventTovoid = () => (EventTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [html.Event])))();
- let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
+ let StringToElement = () => (StringToElement = dart.constFn(dart.fnType(html.Element, [core.String])))();
+ let EventTovoid = () => (EventTovoid = dart.constFn(dart.fnType(dart.void, [html.Event])))();
+ let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.fnType(dart.void, [])))();
dart.defineLazy(sunflower, {
get SEED_RADIUS() {
return 2;
@@ -131,7 +131,7 @@ define(['dart_sdk'], function(dart_sdk) {
painter.CirclePainter[dart.implements] = () => [circle.Circle];
dart.setSignature(painter.CirclePainter, {
fields: () => ({color: dart.fieldType(core.String)}),
- methods: () => ({draw: dart.definiteFunctionType(dart.void, [html.CanvasRenderingContext2D])})
+ methods: () => ({draw: dart.fnType(dart.void, [html.CanvasRenderingContext2D])})
});
sunflower.SunflowerSeed = class SunflowerSeed extends dart.mixin(circle.Circle, painter.CirclePainter) {
new(x, y, radius, color) {
« no previous file with comments | « pkg/dev_compiler/test/codegen_expected/script.js ('k') | pkg/dev_compiler/test/codegen_expected/varargs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698