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

Unified Diff: test/codegen/expect/closure.js

Issue 1483813002: Use const for const/final top-levels, types, symbols. (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Rebased after vsm's regen Created 5 years, 1 month 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 | « test/codegen/expect/cascade.js ('k') | test/codegen/expect/collection/algorithms.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/closure.js
diff --git a/test/codegen/expect/closure.js b/test/codegen/expect/closure.js
index d89bed7ac7a025cdadd20ccab9df97628d6a2645..f1d937d8dcfb8edd7d4f8dba1f18e979f266d620 100644
--- a/test/codegen/expect/closure.js
+++ b/test/codegen/expect/closure.js
@@ -7,8 +7,8 @@ dart_library.library('closure', null, /* Imports */[
'use strict';
let dartx = dart.dartx;
/** @typedef {function({i: (?number|undefined)}=)} */
- let Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [], {i: core.int}));
- let Foo$ = dart.generic(function(T) {
+ const Callback = dart.typedef('Callback', () => dart.functionType(dart.void, [], {i: core.int}));
+ const Foo$ = dart.generic(function(T) {
class Foo extends core.Object {
/**
* @param {?number} i
@@ -133,7 +133,7 @@ dart_library.library('closure', null, /* Imports */[
}
dart.fn(main, dart.void, [dart.dynamic]);
/** @final {string} */
- let some_top_level_constant = "abc";
+ const some_top_level_constant = "abc";
/** @final {string} */
exports.some_top_level_final = "abc";
/** @type {string} */
« no previous file with comments | « test/codegen/expect/cascade.js ('k') | test/codegen/expect/collection/algorithms.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698