Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 5,200 for p$ (0.1 sec)

  1. src/internal/types/testdata/fixedbugs/issue48136.go

    package p
    
    func f1[P interface{ *P }]() {}
    func f2[P interface{ func(P) }]() {}
    func f3[P, Q interface{ func(Q) P }]() {}
    func f4[P interface{ *Q }, Q interface{ func(P) }]() {}
    func f5[P interface{ func(P) }]() {}
    func f6[P interface { *Tree[P] }, Q any ]() {}
    
    func _() {
            f1 /* ERROR "cannot infer P" */ ()
            f2 /* ERROR "cannot infer P" */ ()
            f3 /* ERROR "cannot infer P" */ ()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 926 bytes
    - Viewed (0)
  2. pkg/auth/authorizer/abac/abac.go

    )
    
    type policyLoadError struct {
    	path string
    	line int
    	data []byte
    	err  error
    }
    
    func (p policyLoadError) Error() string {
    	if p.line >= 0 {
    		return fmt.Sprintf("error reading policy file %s, line %d: %s: %v", p.path, p.line, string(p.data), p.err)
    	}
    	return fmt.Sprintf("error reading policy file %s: %v", p.path, p.err)
    }
    
    // PolicyList is simply a slice of Policy structs.
    type PolicyList []*abac.Policy
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 11 03:11:30 UTC 2021
    - 7.4K bytes
    - Viewed (0)
  3. src/runtime/testdata/testprog/checkptr.go

    	sink2 = p
    	sink2 = unsafe.Slice(p, 100)
    }
    
    func CheckPtrStringOK() {
    	p := new([4]byte)
    	sink2 = unsafe.String(&p[1], 3)
    }
    
    func CheckPtrStringFail() {
    	p := new(byte)
    	sink2 = p
    	sink2 = unsafe.String(p, 100)
    }
    
    func CheckPtrAlignmentNested() {
    	s := make([]int8, 100)
    	p := unsafe.Pointer(&s[0])
    	n := 9
    	_ = ((*[10]int8)(unsafe.Pointer((*[10]int64)(unsafe.Pointer(&p)))))[:n:n]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 31 17:15:15 UTC 2022
    - 2.4K bytes
    - Viewed (0)
  4. src/runtime/duff_arm.s

    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    	MOVW.P	R0, 4(R1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 05:33:40 UTC 2017
    - 7.1K bytes
    - Viewed (0)
  5. tools/istio-iptables/pkg/capture/testdata/ipv6-dns-uid-gid.golden

    ip6tables -t raw -A OUTPUT -p udp -j ISTIO_OUTPUT
    ip6tables -t nat -A ISTIO_OUTPUT -p udp --dport 53 -m owner --uid-owner 3 -j RETURN
    ip6tables -t nat -A ISTIO_OUTPUT -p udp --dport 53 -m owner --uid-owner 4 -j RETURN
    ip6tables -t nat -A ISTIO_OUTPUT -p udp --dport 53 -m owner --gid-owner 1 -j RETURN
    ip6tables -t nat -A ISTIO_OUTPUT -p udp --dport 53 -m owner --gid-owner 2 -j RETURN
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 15:51:15 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  6. src/internal/types/testdata/fixedbugs/issue60377.go

    	g[int](x)    // int is ok for P
    	g[string](x) // string is also ok for P!
    }
    
    // This is analogous to the above example,
    // but uses two interface types of the same structure.
    
    type T2[P any] interface{ m() }
    
    func _() {
    	var x T2[int]
    	g /* ERROR "cannot infer P" */ (x)
    	g[int](x)    // int is ok for P
    	g[string](x) // string is also ok for P!
    }
    
    // Analogous to the T2 example but using an unparameterized interface T3.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 30 20:19:38 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. src/internal/types/testdata/fixedbugs/issue50417.go

    // implications on the spec. See issue #51576.
    
    package p
    
    type Sf struct {
            f int
    }
    
    func f0[P Sf](p P) {
            _ = p.f // ERROR "p.f undefined"
            p.f /* ERROR "p.f undefined" */ = 0
    }
    
    func f0t[P ~struct{f int}](p P) {
            _ = p.f // ERROR "p.f undefined"
            p.f /* ERROR "p.f undefined" */ = 0
    }
    
    var _ = f0[Sf]
    var _ = f0t[Sf]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/hilbert_test.go

    		g.p("\n")
    	}
    	g.p(")\n\n")
    }
    
    func (g *gen) product(n int) {
    	g.p(`// Product matrix
    const (
    `)
    	for i := 0; i < n; i++ {
    		for j := 0; j < n; j++ {
    			g.p("\tp%d_%d = ", i, j)
    			for k := 0; k < n; k++ {
    				if k > 0 {
    					g.p(" + ")
    				}
    				g.p("h%d_%d*i%d_%d", i, k, k, j)
    			}
    			g.p("\n")
    		}
    		g.p("\n")
    	}
    	g.p(")\n\n")
    }
    
    func (g *gen) verify(n int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 21:00:12 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/printer_test.go

    	{"package p; type _[P (T),] struct{}", "package p; type _[P T] struct{}"},
    	{"package p; type _[P (T), _ any] struct{}", "package p; type _[P T, _ any] struct{}"},
    
    	{"package p; type _[P (*struct{})] struct{}", "package p; type _[P *struct{}] struct{}"},
    	{"package p; type _[P ([]int)] struct{}", "package p; type _[P []int] struct{}"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 31 17:08:18 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  10. test/ken/embed.go

    	return p.a
    }
    func (p *SubpSub) testx() { println("SubpSub", p, p.a6) }
    
    /******
     ******
     ******/
    
    type SubSubp struct {
    	a5 int
    	a  int
    }
    
    func (p *SubSubp) test5() int {
    	if p.a != p.a5 {
    		println("SubpSub", p, p.a5)
    		panic("fail")
    	}
    	return p.a
    }
    
    /******
     ******
     ******/
    
    type SubSub struct {
    	a4 int
    	a  int
    }
    
    func (p *SubSub) test4() int {
    	if p.a != p.a4 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 03 17:03:15 UTC 2016
    - 4.3K bytes
    - Viewed (0)
Back to top