| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |