blob: 837303d7b9a17c4ef97f4b82584cd9c833c7b346 [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 static method invocation i has the form
* C.m(a1, ... , an, xn+1 : an+1, ... , xn+k : an+k)
* where C denotes a class in the current scope.
* @description Checks that argument list should not end with a comma.
* @compile-error
* @author msyabro
* @reviewer kaigorodov
*/
class C {
static f(p1, p2, p3) {}
}
main() {
try {
C.f(1, 2, 3, );
} catch(e) {}
}