3 // Copyright 2009 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // Verify that illegal function signatures are detected.
16 func f1(*t2, x t3) // ERROR "named"
17 func f2(t1, *t2, x t3) // ERROR "named"
18 func f3() (x int, *string) // ERROR "named"
20 func f4() (t1 t1) // legal - scope of parameter named t1 starts in body of f4.