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

Side by Side Diff: tests/compiler/dart2js/simple_inferrer_postfix_prefix_test.dart

Issue 21013004: Remove support for getters with parameters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import 'package:expect/expect.dart'; 5 import 'package:expect/expect.dart';
6 import 'compiler_helper.dart'; 6 import 'compiler_helper.dart';
7 import 'parser_helper.dart'; 7 import 'parser_helper.dart';
8 8
9 const String TEST = """ 9 const String TEST = """
10 10
(...skipping 10 matching lines...) Expand all
21 returnDynamic2() => this[index]--; 21 returnDynamic2() => this[index]--;
22 returnNum3() => --this[index]; 22 returnNum3() => --this[index];
23 returnNum4() => this[index] -= 42; 23 returnNum4() => this[index] -= 42;
24 24
25 returnDynamic3() => this.bar--; 25 returnDynamic3() => this.bar--;
26 returnNum5() => --this.bar; 26 returnNum5() => --this.bar;
27 returnNum6() => this.bar -= 42; 27 returnNum6() => this.bar -= 42;
28 } 28 }
29 29
30 class B extends A { 30 class B extends A {
31 get foo() => 42; 31 get foo => 42;
32 operator[](index) => 42; 32 operator[](index) => 42;
33 33
34 returnString1() => super.foo--; 34 returnString1() => super.foo--;
35 returnDynamic1() => --super.foo; 35 returnDynamic1() => --super.foo;
36 returnDynamic2() => super.foo -= 42; 36 returnDynamic2() => super.foo -= 42;
37 37
38 returnString2() => super[index]--; 38 returnString2() => super[index]--;
39 returnDynamic3() => --super[index]; 39 returnDynamic3() => --super[index];
40 returnDynamic4() => super[index] -= 42; 40 returnDynamic4() => super[index] -= 42;
41 } 41 }
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 checkReturnInClass('A', 'returnDynamic2', subclassOfInterceptor); 87 checkReturnInClass('A', 'returnDynamic2', subclassOfInterceptor);
88 checkReturnInClass('A', 'returnDynamic3', typesTask.dynamicType); 88 checkReturnInClass('A', 'returnDynamic3', typesTask.dynamicType);
89 89
90 checkReturnInClass('B', 'returnString1', typesTask.stringType); 90 checkReturnInClass('B', 'returnString1', typesTask.stringType);
91 checkReturnInClass('B', 'returnString2', typesTask.stringType); 91 checkReturnInClass('B', 'returnString2', typesTask.stringType);
92 checkReturnInClass('B', 'returnDynamic1', typesTask.dynamicType); 92 checkReturnInClass('B', 'returnDynamic1', typesTask.dynamicType);
93 checkReturnInClass('B', 'returnDynamic2', typesTask.dynamicType); 93 checkReturnInClass('B', 'returnDynamic2', typesTask.dynamicType);
94 checkReturnInClass('B', 'returnDynamic3', typesTask.dynamicType); 94 checkReturnInClass('B', 'returnDynamic3', typesTask.dynamicType);
95 checkReturnInClass('B', 'returnDynamic4', typesTask.dynamicType); 95 checkReturnInClass('B', 'returnDynamic4', typesTask.dynamicType);
96 } 96 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698