Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestInstantiateConcurrent (0.3 sec)

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

    	}
    
    	// instantiated type should point to itself
    	if p := res.Underlying().(*Pointer).Elem(); p != res {
    		t.Fatalf("unexpected result type: %s points to %s", res, p)
    	}
    }
    
    func TestInstantiateConcurrent(t *testing.T) {
    	const src = `package p
    
    type I[P any] interface {
    	m(P)
    	n() P
    }
    
    type J = I[int]
    
    type Nested[P any] *interface{b(P)}
    
    type K = Nested[string]
    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

    	}
    
    	// instantiated type should point to itself
    	if p := res.Underlying().(*Pointer).Elem(); p != res {
    		t.Fatalf("unexpected result type: %s points to %s", res, p)
    	}
    }
    
    func TestInstantiateConcurrent(t *testing.T) {
    	const src = `package p
    
    type I[P any] interface {
    	m(P)
    	n() P
    }
    
    type J = I[int]
    
    type Nested[P any] *interface{b(P)}
    
    type K = Nested[string]
    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