Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for mustTypecheck (0.47 sec)

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

    	const bsrc = `package b; import "a"; type T struct { F interface { a.I } }; var _ = a.T(T{})`
    
    	a := mustTypecheck(asrc, nil, nil)
    
    	conf := Config{Importer: importHelper{pkg: a}}
    	mustTypecheck(bsrc, &conf, nil)
    }
    
    type importHelper struct {
    	pkg      *Package
    	fallback Importer
    }
    
    func (h importHelper) Import(path string) (*Package, error) {
    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/go/types/issues_test.go

    	const bsrc = `package b; import "a"; type T struct { F interface { a.I } }; var _ = a.T(T{})`
    
    	a := mustTypecheck(asrc, nil, nil)
    
    	conf := Config{Importer: importHelper{pkg: a}}
    	mustTypecheck(bsrc, &conf, nil)
    }
    
    type importHelper struct {
    	pkg      *Package
    	fallback Importer
    }
    
    func (h importHelper) Import(path string) (*Package, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  3. src/go/types/builtins_test.go

    	src := fmt.Sprintf(`package p; import "unsafe"; type _ unsafe.Pointer /* use unsafe */; func _[P ~[]byte]() { %s }`, src0)
    
    	uses := make(map[*ast.Ident]Object)
    	types := make(map[ast.Expr]TypeAndValue)
    	mustTypecheck(src, nil, &Info{Uses: uses, Types: types})
    
    	// find called function
    	n := 0
    	var fun ast.Expr
    	for x := range types {
    		if call, _ := x.(*ast.CallExpr); call != nil {
    			fun = call.Fun
    			n++
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/builtins_test.go

    	src := fmt.Sprintf(`package p; import "unsafe"; type _ unsafe.Pointer /* use unsafe */; func _[P ~[]byte]() { %s }`, src0)
    
    	uses := make(map[*syntax.Name]Object)
    	types := make(map[syntax.Expr]TypeAndValue)
    	mustTypecheck(src, nil, &Info{Uses: uses, Types: types})
    
    	// find called function
    	n := 0
    	var fun syntax.Expr
    	for x := range types {
    		if call, _ := x.(*syntax.CallExpr); call != nil {
    			fun = call.Fun
    			n++
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top