for(tl=tstruct->type; tl; tl=tl->down) {
t = tl->type;
if(tl->isddd) {
- if(nl != nil && nl->n->op == ONAME && nl->n->isddd && !isddd) {
- // TODO(rsc): This is not actually illegal, but it will help catch bugs.
- yyerror("to pass '%#N' as ...%T, use '%#N...'", nl->n, t->type, nl->n);
- isddd = 1;
- }
if(isddd) {
if(nl == nil)
goto notenough;
package main
func f(args ...int) {
- g(args) // ERROR "[.][.][.]"
+ g(args)
}
func g(args ...interface{}) {
- f(args) // ERROR "[.][.][.]"
+ f(args) // ERROR "cannot use|incompatible"
}