Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 677 for assignments (0.15 sec)

  1. test/fixedbugs/bug161.go

    // license that can be found in the LICENSE file.
    
    package P
    
    const a = 0;
    
    func f(a int) {
    	a = 0;
    }
    
    /*
    bug161.go:8: operation LITERAL not allowed in assignment context
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 295 bytes
    - Viewed (0)
  2. 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)
  3. 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)
  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. src/cmd/compile/internal/ssagen/ssa.go

    		b.AddEdgeTo(lab.target)
    
    	case ir.OAS:
    		n := n.(*ir.AssignStmt)
    		if n.X == n.Y && n.X.Op() == ir.ONAME {
    			// An x=x assignment. No point in doing anything
    			// here. In addition, skipping this assignment
    			// prevents generating:
    			//   VARDEF x
    			//   COPY x -> x
    			// which is bad because x is incorrectly considered
    			// dead before the vardef. See issue #14904.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K 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. 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)
  10. test/fixedbugs/bug010.go

    }
    
    func main() {
    	f(3, float64(5))
    }
    
    /*
    bug10.go:5: i undefined
    bug10.go:6: illegal conversion of constant to 020({},<_o001>{<i><int32>INT32;<f><float32>FLOAT32;},{})
    bug10.go:7: error in shape across assignment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 450 bytes
    - Viewed (0)
Back to top