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

Side by Side Diff: test/codegen/names.dart

Issue 1034273003: fix for static methods and names banned in strict mode (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 8 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 | « test/codegen/expect/server_mode/html_input.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 var exports = 42; 5 var exports = 42;
6 6
7 class Foo { 7 class Foo {
8 _foo() => 123; 8 _foo() => 123;
9 } 9 }
10 10
11 _foo() => 456; 11 _foo() => 456;
12 12
13 class Frame {
14 final List arguments;
15 Frame.caller(this.arguments);
16 static callee() => null;
17 }
18
13 main() { 19 main() {
14 print(exports); 20 print(exports);
15 print(new Foo()._foo()); 21 print(new Foo()._foo());
16 print(_foo()); 22 print(_foo());
23 print(new Frame.caller([1,2,3]));
24 var eval = Frame.callee;
25 print(eval);
17 } 26 }
OLDNEW
« no previous file with comments | « test/codegen/expect/server_mode/html_input.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698