dart-sdk/tests/language_2/invalid_assignment_to_postfix_increment_test.dart
Erik Ernst 69790e7eb4 Updated Dart.g, tests & status files to support ui-as-code collections
Change-Id: I9ba3aa4e3ebaedee3a2cd20ccdcc533af96b9bda
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/98018
Reviewed-by: Lasse R.H. Nielsen <lrn@google.com>
Commit-Queue: Erik Ernst <eernst@google.com>
2019-03-29 13:33:52 +00:00

14 lines
364 B
Dart

// 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: syntax error
x++ += y; //# 02: syntax error
x++ ??= y; //# 03: syntax error
}
main() {
f(1, 2);
}