Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestIssue44410 (0.17 sec)

  1. src/go/types/issues_test.go

    	}
    
    	// type of v and T must be pointer-identical
    	if v.Type() != T {
    		t.Fatalf("types of v and T are not pointer-identical: %p != %p", v.Type().(*TypeParam), T)
    	}
    }
    
    func TestIssue44410(t *testing.T) {
    	const src = `
    package p
    
    type A = []int
    type S struct{ A }
    `
    
    	t.Setenv("GODEBUG", "gotypesalias=1")
    	pkg := mustTypecheck(src, nil, nil)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/issues_test.go

    	}
    
    	// type of v and T must be pointer-identical
    	if v.Type() != T {
    		t.Fatalf("types of v and T are not pointer-identical: %p != %p", v.Type().(*TypeParam), T)
    	}
    }
    
    func TestIssue44410(t *testing.T) {
    	const src = `
    package p
    
    type A = []int
    type S struct{ A }
    `
    
    	conf := Config{EnableAlias: true}
    	pkg := mustTypecheck(src, &conf, nil)
    
    	S := pkg.Scope().Lookup("S")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top