Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestIssue6413 (0.11 sec)

  1. src/go/types/issues_test.go

    			}
    		case *ast.Ident:
    			if x.Name == "nil" {
    				want = Typ[UntypedNil]
    			}
    		}
    		if want != nil && !Identical(tv.Type, want) {
    			t.Errorf("got %s; want %s", tv.Type, want)
    		}
    	}
    }
    
    func TestIssue6413(t *testing.T) {
    	src := `
    package p
    func f() int {
    	defer f()
    	go f()
    	return 0
    }
    `
    	types := make(map[ast.Expr]TypeAndValue)
    	mustTypecheck(src, nil, &Info{Types: types})
    
    	want := Typ[Int]
    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

    			}
    		}
    		if want != nil && !Identical(tv.Type, want) {
    			t.Errorf("got %s; want %s", tv.Type, want)
    		}
    	}
    }
    
    func TestIssue6413(t *testing.T) {
    	src := `
    package p
    func f() int {
    	defer f()
    	go f()
    	return 0
    }
    `
    	types := make(map[syntax.Expr]TypeAndValue)
    	mustTypecheck(src, nil, &Info{Types: types})
    
    	want := Typ[Int]
    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