| // Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file |
| // for details. All rights reserved. Use of this source code is governed by a |
| // BSD-style license that can be found in the LICENSE file. |
| |
| ifNull_left() { |
| late int v; |
| (v = 0) ?? 0; |
| v; |
| } |
| |
| ifNull_right(int? a) { |
| late int v; |
| a ?? (v = 0); |
| v; |
| } |
| |
| logicalAnd_left(bool c) { |
| late int v; |
| ((v = 0) >= 0) && c; |
| v; |
| } |
| |
| logicalAnd_right(bool c) { |
| late int v; |
| c && ((v = 0) >= 0); |
| v; |
| } |
| |
| logicalOr_left(bool c) { |
| late int v; |
| ((v = 0) >= 0) || c; |
| v; |
| } |
| |
| logicalOr_right(bool c) { |
| late int v; |
| c || ((v = 0) >= 0); |
| v; |
| } |
| |
| plus_left() { |
| late int v; |
| (v = 0) + 1; |
| v; |
| } |
| |
| plus_right() { |
| late int v; |
| 1 + (v = 0); |
| v; |
| } |