Files
sdk/pkg/front_end/testcases/rasta/parser_error.dart
T
Johnni Winther 31f7a48baf [cfe] Remove language version from expectation tests
This removes unneeded language version from expectation tests in the
implicit_getter_calls/, rasta/, regress/, runtime_checks/,
runtime_checks_new/, set_literals/, and unified_collections/ folders.

Change-Id: I39a04fe7797d20ffae0814809f550431b1184810
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/245371
Reviewed-by: Chloe Stefantsova <cstefantsova@google.com>
Commit-Queue: Johnni Winther <johnniwinther@google.com>
2022-05-30 15:14:43 +00:00

17 lines
480 B
Dart

// Copyright (c) 2016, 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.md file.
// Copy of third_party/dart-sdk/tests/language/argument_definition_test.dart.
import "package:expect/expect.dart";
int test(a, {b, c}) {
if (?b) return b; /// 01: compile-time error
return a + b + c;
}
main() {
Expect.equals(6, test(1, b: 2, c:3));
}