blob: 36cd0f8053f71c9a2b59548393d70606f03f4c6d [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 Let Ti be the static type of ai, let Si be the type of pi,
/// i ∈ 1..h+k and let Sq be the type of the named parameter q of f.
/// . . .
/// It is a static warning if m < h or if m > n.
/// @description Checks that it is a compile error if more actual arguments
/// than there're formal parameters are provided to a static method invocation.
/// @author msyabro
class C {
static func(p1, p2, [p3]) {}
}
main() {
C.func(1, 2 ,3, 4);
// ^
// [analyzer] unspecified
// [cfe] unspecified
}