// Copyright (c) 2018, 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.

void f(int x, int y) {
  x++ = y; //# 01: compile-time error
  x++ += y; //# 02: compile-time error
  x++ ??= y; //# 03: compile-time error
}

main() {
  f(1, 2);
}

Add a language_2 test for invalid assignment to postfix increment.
Add a language_2 test for invalid assignment to postfix increment.

Prior to c95ef874aa5f3231bcd0560e86ccc03bc5a49839, case 02 crashed the
front end.  Prior to f074f3c120303ba3a1aea265102e6924f3ae3d55, case 01
crashed analyzer/FE integration.  Prior to
a94e43af7ce5865b8d2e2736cc7e3c4ea0cd02c4, cases 02 and 03 crashed
analyzer/FE integration.  So it seems worth adding a test to make sure
we don't regress.

Change-Id: I0e1af7d9ed397d40dd1aebab3ff919999379d824
Reviewed-on: https://dart-review.googlesource.com/71369
Reviewed-by: Konstantin Shcheglov <09e4d7516628963212bf4aace2f97603d2b706e4@google.com>
Reviewed-by: Brian Wilkerson <1f7641b6b14c52b9163524ab8d9aabff80176f21@google.com>
Commit-Queue: Paul Berry <72d414e3a99fb120308437779d51667bcc0984eb@google.com>
