Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for tparamList (0.15 sec)

  1. src/cmd/compile/internal/syntax/parser.go

    	typ := new(FuncType)
    	typ.pos = p.pos()
    
    	var tparamList []*Field
    	if p.got(_Lbrack) {
    		if context != "" {
    			// accept but complain
    			p.syntaxErrorAt(typ.pos, context+" must have no type parameters")
    		}
    		if p.tok == _Rbrack {
    			p.syntaxError("empty type parameter list")
    			p.next()
    		} else {
    			tparamList = p.paramList(nil, nil, _Rbrack, true)
    		}
    	}
    
    	p.want(_Lparen)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
Back to top