blob: 9c857ddf39bd09f418ba0efb9e95e8d6e691d0eb [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 Each qi, 1 <= i <= l, must be a member of the set {pn+1, ... , pn+k}
* or a static warning occurs.
* @description Checks that it is a static warning if names of an argument does not
* match with any name of optional named parameters of a function literal.
* @static-warning
* @author msyabro
* @reviewer iefremov
*/
main() {
try {
({p1, p2, p3}) {} (1, 2, p: 3); /// static type warning
} catch(e) {}
}