blob: 76eed82d0cd955500ccf6193e58dc71d89ac5c72 [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.
/// @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 placed in between positional arguments.
/// @author msyabro
class S {
f(p1, p2, [name]) {}
}
class A extends S {
test() {
super.f(1, name: null, 1);
// ^
// [analyzer] unspecified
// [cfe] unspecified
}
}
main() {
new A().test();
}