Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 552 for reassignment (0.23 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/typesinternal/errorcode.go

    	InvalidConstType
    
    	/* decls > var (+ other variable assignment codes) */
    
    	// UntypedNilUse occurs when the predeclared (untyped) value nil is used to
    	// initialize a variable declared without an explicit type.
    	//
    	// Example:
    	//  var x = nil
    	UntypedNilUse
    
    	// WrongAssignCount occurs when the number of values on the right-hand side
    	// of an assignment or initialization expression does not match the number
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 34K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/policy.go

    import (
    	"k8s.io/api/core/v1"
    
    	"k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state"
    	"k8s.io/kubernetes/pkg/kubelet/cm/topologymanager"
    	"k8s.io/utils/cpuset"
    )
    
    // Policy implements logic for pod container to CPU assignment.
    type Policy interface {
    	Name() string
    	Start(s state.State) error
    	// Allocate call is idempotent
    	Allocate(s state.State, pod *v1.Pod, container *v1.Container) error
    	// RemoveContainer call is idempotent
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/test/testdata/addressed_test.go

    	default:
    
    		panic("")
    	}
    	return
    }
    
    // gets is an address-mentioning way of implementing
    // structure assignment.
    //
    //go:noinline
    func (to *V) gets(from *V) {
    	*to = *from
    }
    
    // gets is an address-and-interface-mentioning way of
    // implementing structure assignment.
    //
    //go:noinline
    func (to *V) getsI(from interface{}) {
    	*to = *from.(*V)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  4. test/escape2.go

    	b.buf1 = b.buf1[1:2]   // ERROR "\(\*Buffer\).foo ignoring self-assignment in b.buf1 = b.buf1\[1:2\]$"
    	b.buf1 = b.buf1[1:2:3] // ERROR "\(\*Buffer\).foo ignoring self-assignment in b.buf1 = b.buf1\[1:2:3\]$"
    	b.buf1 = b.buf2[1:2]   // ERROR "\(\*Buffer\).foo ignoring self-assignment in b.buf1 = b.buf2\[1:2\]$"
    	b.buf1 = b.buf2[1:2:3] // ERROR "\(\*Buffer\).foo ignoring self-assignment in b.buf1 = b.buf2\[1:2:3\]$"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/TypeCompatibilityModelProjectionSupport.java

            if (type.getRawClass().getSuperclass() == null && type.getRawClass().getInterfaces().length == 0) {
                return type.toString();
            }
            return type + " (or assignment compatible type thereof)";
        }
    
        @Override
        public String toString() {
            return getClass().getSimpleName() + "[" + type + "]";
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 12:51:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. test/interface/explicit.go

    	// neither of these can work,
    	// because i has an extra method
    	// that t does not, so i cannot contain a t.
    	i = t // ERROR "incompatible|missing method M"
    	t = i // ERROR "incompatible|assignment$"
    
    	i = i2 // ok
    	i2 = i // ERROR "incompatible|missing method N"
    
    	i = I(i2)  // ok
    	i2 = I2(i) // ERROR "invalid|missing N method|cannot convert"
    
    	e = E(t) // ok
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 24 17:04:15 UTC 2022
    - 2K bytes
    - Viewed (0)
  7. test/escape2n.go

    	b.buf1 = b.buf1[1:2]   // ERROR "\(\*Buffer\).foo ignoring self-assignment in b.buf1 = b.buf1\[1:2\]$"
    	b.buf1 = b.buf1[1:2:3] // ERROR "\(\*Buffer\).foo ignoring self-assignment in b.buf1 = b.buf1\[1:2:3\]$"
    	b.buf1 = b.buf2[1:2]   // ERROR "\(\*Buffer\).foo ignoring self-assignment in b.buf1 = b.buf2\[1:2\]$"
    	b.buf1 = b.buf2[1:2:3] // ERROR "\(\*Buffer\).foo ignoring self-assignment in b.buf1 = b.buf2\[1:2:3\]$"
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 35.1K bytes
    - Viewed (0)
  8. test/ken/cplx1.go

    // run
    
    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test simple arithmetic and assignment for complex numbers.
    
    package main
    
    const (
    	R = 5
    	I = 6i
    
    	C1 = R + I // ADD(5,6)
    )
    
    func main() {
    	var b bool
    
    	// constants
    	b = (5 + 6i) == C1
    	if !b {
    		println("const bool 1", b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 1.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ScalarTypesInManagedModelIntegrationTest.groovy

                [dsl       : """${type.canonicalName} get${propName.capitalize()}()
                   void set${propName.capitalize()}(${type.canonicalName} value)
    """,
                 assignment: "p.$propName=$value",
                 check     : "assert p.$propName == $value"]
            }
    
            buildScript """
                import org.gradle.api.artifacts.Configuration.State
    
                @Managed
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.1K bytes
    - Viewed (0)
  10. test/typeparam/ifaceconv.go

    type myInt int
    
    func (x myInt) foo() int {
    	return int(x + 1)
    }
    
    func h[T C](x T) interface{ foo() int } {
    	var i interface{ foo() int } = x
    	return i
    }
    func i[T C](x T) C {
    	var i C = x // conversion in assignment
    	return i
    }
    
    func j[T C](t T) C {
    	return C(t) // explicit conversion
    }
    
    func js[T any](x T) interface{} {
    	y := []T{x}
    	return interface{}(y)
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.7K bytes
    - Viewed (0)
Back to top