blob: 423f22e032665b70b94431c5064f9bb2ef568e3a [file] [log] [blame]
// Copyright (c) 2019, 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.
// SharedOptions=--enable-experiment=non-nullable
import 'package:expect/expect.dart';
int f({required int i}) => i + 1;
class C {
m(int a, {required int i}) => a + i;
}
main() {
Expect.equals(f(i: 2), 3);
Expect.equals(C().m(4, i: 5), 9);
}