Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 6,670 for doens (0.05 sec)

  1. test/fixedbugs/issue21709.go

    // Issue 21709: range expression overly escapes.
    
    package p
    
    type S struct{}
    
    func (s *S) Inc() {} // ERROR "s does not escape"
    var N int
    
    func F1() {
    	var s S
    	for i := 0; i < N; i++ {
    		fs := []func(){ // ERROR "\[\]func\(\){...} does not escape"
    			s.Inc, // ERROR "s.Inc does not escape"
    		}
    		for _, f := range fs {
    			f()
    		}
    	}
    }
    
    func F2() {
    	var s S
    	for i := 0; i < N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 709 bytes
    - Viewed (0)
  2. test/escape_mutations.go

    	copy(out, []byte(s)) // ERROR "zero-copy string->\[\]byte conversion" "\(\[\]byte\)\(s\) does not escape"
    }
    
    func i(s string) byte { // ERROR "s does not escape, mutate, or call"
    	p := []byte(s) // ERROR "zero-copy string->\[\]byte conversion" "\(\[\]byte\)\(s\) does not escape"
    	return p[20]
    }
    
    func j(s string, x byte) { // ERROR "s does not escape, mutate, or call"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 18 11:58:37 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. src/internal/types/testdata/fixedbugs/issue50782.go

    }
    
    // The second example from the issue.
    type T[P int] struct{ f P }
    
    func _[P T[P /* ERROR "P does not satisfy int" */ ]]() {}
    
    // Additional tests
    func _[P T[T /* ERROR "T[P] does not satisfy int" */ [P /* ERROR "P does not satisfy int" */ ]]]() {}
    func _[P T[Q /* ERROR "Q does not satisfy int" */ ], Q T[P /* ERROR "P does not satisfy int" */ ]]() {}
    func _[P T[Q], Q int]() {}
    
    type C[P comparable] struct{ f P }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiUnsupportedVersionIntegrationTest.groovy

            when:
            toolingApi.withConnection { ProjectConnection connection -> connection.getModel(GradleProject.class) }
    
            then:
            UnsupportedVersionException e = thrown()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. test/fixedbugs/issue12006.go

    }
    
    func TFooJ1() {
    	a := int32(1)
    	b := "cat"
    	c := &a
    	FooJ(a, b, c) // ERROR "a does not escape" "b does not escape" "... argument does not escape"
    }
    
    func TFooJ2() {
    	a := int32(1) // ERROR "moved to heap: a"
    	b := "cat"
    	c := &a
    	isink = FooJ(a, b, c) // ERROR "a escapes to heap" "b escapes to heap" "... argument does not escape"
    }
    
    type fakeSlice struct {
    	l int
    	a *[4]interface{}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 26 23:50:32 UTC 2021
    - 3.8K bytes
    - Viewed (0)
  6. src/net/file.go

    // FileConn returns a copy of the network connection corresponding to
    // the open file f.
    // It is the caller's responsibility to close f when finished.
    // Closing c does not affect f, and closing f does not affect c.
    func FileConn(f *os.File) (c Conn, err error) {
    	c, err = fileConn(f)
    	if err != nil {
    		err = &OpError{Op: "file", Net: "file+net", Source: nil, Addr: fileAddr(f.Name()), Err: err}
    	}
    	return
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 09 06:14:44 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/UnsupportedConfigurationMutationTest.groovy

        def "allows changing a configuration that does not affect a resolved configuration"() {
            buildFile << """
                configurations {
                    a
                    b
                    b.resolve()
                }
                dependencies { a "a:b:c" }
            """
            expect: succeeds()
        }
    
        def "allows changing a non-empty configuration that does not affect a resolved configuration"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 20:59:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue47411.go

    ]() {
            _ = f[int]
            _ = f[P]
            _ = f[Q]
            _ = f[func /* ERROR "does not satisfy comparable" */ ()]
            _ = f[R /* ERROR "R does not satisfy comparable" */ ]
    
            _ = g[int]
            _ = g[P /* ERROR "P does not satisfy interface{interface{comparable; ~int | ~string}" */ ]
            _ = g[Q]
            _ = g[func /* ERROR "func() does not satisfy interface{interface{comparable; ~int | ~string}}" */ ()]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 989 bytes
    - Viewed (0)
  9. platforms/native/platform-native/src/integTest/groovy/org/gradle/nativeplatform/toolchain/VisualCppToolChainDiscoveryIntegrationTest.groovy

          - The specified installation directory '${file('does-not-exist')}' does not appear to contain a Visual Studio installation.""")
        }
    
        def "tool chain is not available when SDK install is not available"() {
            when:
            buildFile << """
    model {
        toolChains {
            ${toolChain.id} {
                windowsSdkDir "does-not-exist"
            }
        }
    }
    """
            fails "mainExecutable"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  10. test/escape_map.go

    			r = append(r, v)
    		}
    	}
    	return r
    }
    
    func map5(m map[*int]*int) { // ERROR "m does not escape"
    	i := 0 // ERROR "moved to heap: i"
    	j := 0 // ERROR "moved to heap: j"
    	m[&i] = &j
    }
    
    func map6(m map[*int]*int) { // ERROR "m does not escape"
    	if m != nil {
    		m = make(map[*int]*int) // ERROR "make\(map\[\*int\]\*int\) does not escape"
    	}
    	i := 0 // ERROR "moved to heap: i"
    	j := 0 // ERROR "moved to heap: j"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 12 08:31:49 UTC 2020
    - 2.8K bytes
    - Viewed (0)
Back to top