6f66c12c05
Change-Id: I333977cf5738c39f6754c7ecbab8eea8751e761c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/399861 Reviewed-by: Lasse Nielsen <lrn@google.com> Auto-Submit: Bob Nystrom <rnystrom@google.com> Commit-Queue: Bob Nystrom <rnystrom@google.com>
22 lines
694 B
Dart
22 lines
694 B
Dart
// Copyright (c) 2017, 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.
|
|
|
|
// The formatter will remove the trailing commas so don't format this file.
|
|
// dart format off
|
|
|
|
main() {
|
|
assert(true);
|
|
assert(true,);
|
|
assert(true,"message");
|
|
assert(true,"message",);
|
|
assert(true,"message",extra);
|
|
// ^^^^^
|
|
// [analyzer] SYNTACTIC_ERROR.UNEXPECTED_TOKEN
|
|
// [cfe] Unexpected token 'extra'.
|
|
assert(true,"message",,);
|
|
// ^
|
|
// [analyzer] SYNTACTIC_ERROR.UNEXPECTED_TOKEN
|
|
// [cfe] Unexpected token ','.
|
|
}
|