Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for Headless (0.14 sec)

  1. src/cmd/compile/internal/types2/api_test.go

    	T := pkg.Scope().Lookup("T").Type().(*Named)
    	if n := T.TypeParams().Len(); n != 1 {
    		t.Fatalf("expected 1 type parameter; found %d", n)
    	}
    
    	// instantiation should succeed (no endless recursion)
    	// even with a nil *Checker
    	res, err := Instantiate(nil, T, []Type{Typ[Int]}, false)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// instantiated type should point to itself
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    	T := pkg.Scope().Lookup("T").Type().(*Named)
    	if n := T.TypeParams().Len(); n != 1 {
    		t.Fatalf("expected 1 type parameter; found %d", n)
    	}
    
    	// instantiation should succeed (no endless recursion)
    	// even with a nil *Checker
    	res, err := Instantiate(nil, T, []Type{Typ[Int]}, false)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// instantiated type should point to itself
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
Back to top