Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for genMethodExpressions (0.37 sec)

  1. test/typeparam/dictionaryCapture.go

    // immediately called and we need to capture the dictionary
    // required for later invocation.
    
    package main
    
    import (
    	"fmt"
    )
    
    func main() {
    	functions()
    	methodExpressions()
    	genMethodExpressions[int](7)
    	methodValues()
    	genMethodValues[int](7)
    	interfaceMethods()
    	globals()
    	recursive()
    }
    
    func g0[T any](x T) {
    }
    func g1[T any](x T) T {
    	return x
    }
    func g2[T any](x T) (T, T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 3.3K bytes
    - Viewed (0)
Back to top