blob: ccdde8e64f9e9e10269329d2c9c7da38da4a3412 [file] [log] [blame]
// Copyright (c) 2011, 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.
// @dart = 2.9
/// @assertion A super method invocation i has the form
/// super.m(a1, ... , an, xn+1 : an+1, ... , xn+k : an+k).
/// @description Checks that it is a compile-time error if named
/// arguments precede positional arguments.
/// @author msyabro
/// @reviewer kaigorodov
class S {
f(p1, [name]) {}
}
class A extends S {
test() {
try {
super.f(name: null, 1);
// ^
// [analyzer] unspecified
// [cfe] unspecified
} catch (e) {}
}
}
main() {
new A().test();
}