Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 552 for reassignment (0.35 sec)

  1. src/internal/types/testdata/examples/types.go

    type T2[P any] struct {
    	f struct {
    		g P
    	}
    }
    
    var x1 T1[struct{ g int }]
    var x2 T2[int]
    
    func _() {
    	// This assignment is invalid because the types of x1, x2 are T1(...)
    	// and T2(...) respectively, which are two different defined types.
    	x1 = x2 // ERROR "assignment"
    
    	// This assignment is valid because the types of x1.f and x2.f are
    	// both struct { g int }; the type parameters act like type aliases
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:16:04 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. src/cmd/vet/testdata/atomic/atomic.go

    // This file contains tests for the atomic checker.
    
    package atomic
    
    import "sync/atomic"
    
    func AtomicTests() {
    	x := uint64(1)
    	x = atomic.AddUint64(&x, 1) // ERROR "direct assignment to atomic value"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 20 15:46:42 UTC 2019
    - 364 bytes
    - Viewed (0)
  3. pkg/kubelet/cm/memorymanager/state/state_mem.go

    type stateMemory struct {
    	sync.RWMutex
    	assignments  ContainerMemoryAssignments
    	machineState NUMANodeMap
    }
    
    var _ State = &stateMemory{}
    
    // NewMemoryState creates new State for keeping track of cpu/pod assignment
    func NewMemoryState() State {
    	klog.InfoS("Initializing new in-memory state store")
    	return &stateMemory{
    		assignments:  ContainerMemoryAssignments{},
    		machineState: NUMANodeMap{},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 15 19:51:19 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  4. src/internal/types/testdata/fixedbugs/issue67547.go

    }
    
    func _[P struct{ x int }]() {
    	var x struct{ x int }
    	type A = P
    	var _ A = x // assignment must be valid
    }
    
    func _[P struct{ x int }]() {
    	type A = P
    	var x A
    	var _ struct{ x int } = x // assignment must be valid
    }
    
    func _[P []int | struct{}]() {
    	type A = []int
    	var a A
    	var p P
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_collective.cc

            all_reduce.getGroupSize()
                .getDefiningOp<TF::CollectiveAssignGroupV2Op>();
    
        if (assign_group) {
          // Found a group assignment. Use replica_groups to represent group
          // assignment.
    
          if (assign_group != all_reduce.getGroupKey()
                                  .getDefiningOp<TF::CollectiveAssignGroupV2Op>()) {
            return all_reduce->emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/transformation/OriginReplacementTest.kt

            with(resolution("configuring { property = value() }")) {
                val assignment = assignments.single()
                val lhs = replaceInnerReceiverWithTopLevel(assignment.lhs.receiverObject)
                val rhs = replaceInnerReceiverWithTopLevel(assignment.rhs)
    
                assertEquals(topLevelReceiver, (lhs as ObjectOrigin.ImplicitThisReceiver).resolvedTo)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:31:36 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. test/fixedbugs/issue24470.go

    // Verify that we get "use of .(type) outside type switch"
    // before any other (misleading) errors. Test case from issue.
    
    package p
    
    func f(i interface{}) {
    	if x, ok := i.(type); ok { // ERROR "assignment mismatch|outside type switch"
    		_ = x
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 05 18:46:36 UTC 2021
    - 434 bytes
    - Viewed (0)
  8. test/fixedbugs/bug144.go

    package main
    
    const c = 1;
    
    func main() {
    	c := 0;
    	_ = c;
    }
    
    /*
    bug144.go:8: left side of := must be a name
    bug144.go:8: operation LITERAL not allowed in assignment context
    bug144.go:8: illegal types for operand: AS
    	ideal
    	int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 404 bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/SubtypingTest.kt

            )
        )
    
        @Test
        fun `type-checks assignment of subtype to superclass type`() {
            val result = schema.resolve(
                """
                superClassProp = sub()
                """.trimIndent()
            )
    
            assertEquals(1, result.assignments.size)
        }
    
        @Test
        fun `type-checks assignment of subtype to super interface type`() {
            val result = schema.resolve(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/readWriteAccess/FirIdeNormalAnalysisSourceModuleReadWriteAccessTestGenerated.java

      }
    
      @Test
      @TestMetadata("assignment.kt")
      public void testAssignment() {
        runTest("analysis/analysis-api/testData/components/expressionInfoProvider/readWriteAccess/assignment.kt");
      }
    
      @Test
      @TestMetadata("assignmentPlusEq.kt")
      public void testAssignmentPlusEq() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Mar 08 22:12:25 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top