Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestIsAlias (0.13 sec)

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

    // license that can be found in the LICENSE file.
    
    package types2_test
    
    import (
    	"fmt"
    	"internal/testenv"
    	"strings"
    	"testing"
    
    	. "cmd/compile/internal/types2"
    )
    
    func TestIsAlias(t *testing.T) {
    	check := func(obj *TypeName, want bool) {
    		if got := obj.IsAlias(); got != want {
    			t.Errorf("%v: got IsAlias = %v; want %v", obj, got, want)
    		}
    	}
    
    	// predeclared types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/go/types/object_test.go

    // license that can be found in the LICENSE file.
    
    package types_test
    
    import (
    	"fmt"
    	"internal/testenv"
    	"strings"
    	"testing"
    
    	. "go/types"
    )
    
    func TestIsAlias(t *testing.T) {
    	check := func(obj *TypeName, want bool) {
    		if got := obj.IsAlias(); got != want {
    			t.Errorf("%v: got IsAlias = %v; want %v", obj, got, want)
    		}
    	}
    
    	// predeclared types
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 5.2K bytes
    - Viewed (0)
Back to top