Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mustInstantiate (0.22 sec)

  1. src/go/types/named_test.go

    	`
    	pkg := mustTypecheck(src, nil, nil)
    
    	var (
    		T        = pkg.Scope().Lookup("T").Type()
    		G        = pkg.Scope().Lookup("G").Type()
    		SrcInst  = pkg.Scope().Lookup("Inst").Type()
    		UserInst = mustInstantiate(b, G, Typ[Int])
    	)
    
    	tests := []struct {
    		name string
    		typ  Type
    	}{
    		{"nongeneric", T},
    		{"generic", G},
    		{"src instance", SrcInst},
    		{"user instance", UserInst},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 16:29:58 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/named_test.go

    	`
    	pkg := mustTypecheck(src, nil, nil)
    
    	var (
    		T        = pkg.Scope().Lookup("T").Type()
    		G        = pkg.Scope().Lookup("G").Type()
    		SrcInst  = pkg.Scope().Lookup("Inst").Type()
    		UserInst = mustInstantiate(b, G, Typ[Int])
    	)
    
    	tests := []struct {
    		name string
    		typ  Type
    	}{
    		{"nongeneric", T},
    		{"generic", G},
    		{"src instance", SrcInst},
    		{"user instance", UserInst},
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 16 21:06:56 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top