1# Tests that invalid examples are ignored. 2# Verifies golang.org/issue/35284 3# Disable vet, as 'tests' analyzer objects to surplus parameter. 4go test -vet=off x_test.go 5 6-- x_test.go -- 7package x 8 9import "fmt" 10 11func ExampleThisShouldNotHaveAParameter(thisShouldntExist int) { 12 fmt.Println("X") 13 // Output: 14}