blob: 212e151f8f5cb4e7d9017804a3ce77be2d92b386 [file] [log] [blame]
// Copyright (c) 2023, 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.
import 'package:expect/expect.dart';
class A {
int? test({int? a = 123}) {
return a;
}
}
void main() {
dynamic x = A();
Expect.equals(null, x.test(a: null));
Expect.equals(123, x.test());
Expect.equals(456, x.test(a: 456));
}