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

Side by Side Diff: tests/language/operator_test.dart

Issue 10911206: Remove support for operator negate and replace occurrences with unary (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « tests/language/operator3_test.dart ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 class OperatorTest { 5 class OperatorTest {
6 static int i1, i2; 6 static int i1, i2;
7 7
8 OperatorTest() {} 8 OperatorTest() {}
9 9
10 static testMain() { 10 static testMain() {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 } 120 }
121 121
122 operator >>(Operator other) { 122 operator >>(Operator other) {
123 return value >> other.value; 123 return value >> other.value;
124 } 124 }
125 125
126 operator ~/(Operator other) { 126 operator ~/(Operator other) {
127 return value ~/ other.value; 127 return value ~/ other.value;
128 } 128 }
129 129
130 operator negate() { 130 operator -() {
131 return -value; 131 return -value;
132 } 132 }
133 } 133 }
134 134
135 main() { 135 main() {
136 OperatorTest.testMain(); 136 OperatorTest.testMain();
137 } 137 }
OLDNEW
« no previous file with comments | « tests/language/operator3_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698