Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RegisterIt (0.08 sec)

  1. test/fixedbugs/issue31412a.go

    type EFunc func(int) int
    
    func Register(f EFunc, names ...Name) int {
    	return f(len(names))
    }
    
    const (
    	B Name = "B"
    )
    
    func RegisterIt() {
    	n := B + "Duck"
    	d := B + "Goose"
    	f := func(x int) int { return x + 9 }
    	Register(f, n, d)
    }
    
    func main() {
    	RegisterIt()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:17:26 UTC 2019
    - 531 bytes
    - Viewed (0)
Back to top