Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 252 for assignments (0.2 sec)

  1. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/atomic/doc.go

    // using the sync/atomic package.
    //
    // # Analyzer atomic
    //
    // atomic: check for common mistakes using the sync/atomic package
    //
    // The atomic checker looks for assignment statements of the form:
    //
    //	x = atomic.AddUint64(&x, 1)
    //
    // which are not atomic.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 505 bytes
    - Viewed (0)
  2. src/internal/types/testdata/fixedbugs/issue54424.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func f[P ~*T, T any]() {
    	var p P
    	var tp *T
    	tp = p // this assignment is valid
    	_ = tp
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 14:01:09 UTC 2023
    - 262 bytes
    - Viewed (0)
  3. common/config/tslint.json

            "max-line-length": {
                "options": [160]
            },
            "arrow-parens": false,
            "new-parens": true,
            "no-arg": true,
            "no-bitwise": true,
            "no-conditional-assignment": true,
            "no-consecutive-blank-lines": true,
            "no-console": {
                "severity": "warning",
                "options": ["debug", "info", "log", "time", "timeEnd", "trace"]
            },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 11 23:32:21 UTC 2019
    - 631 bytes
    - Viewed (0)
  4. src/cmd/vet/testdata/copylock/copylock.go

    // license that can be found in the LICENSE file.
    
    package copylock
    
    import "sync"
    
    func BadFunc() {
    	var x *sync.Mutex
    	p := x
    	var y sync.Mutex
    	p = &y
    	*p = *x // ERROR "assignment copies lock value to \*p: sync.Mutex"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jul 26 21:34:18 UTC 2021
    - 333 bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/api/SupportsKotlinAssignmentOverloading.java

    import java.lang.annotation.ElementType;
    import java.lang.annotation.Retention;
    import java.lang.annotation.RetentionPolicy;
    import java.lang.annotation.Target;
    
    /**
     * Marks interface that works with overloaded Kotlin assignment.
     *
     * @since 8.1
     */
    @Documented
    @Retention(RetentionPolicy.RUNTIME)
    @Target(ElementType.TYPE)
    public @interface SupportsKotlinAssignmentOverloading {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1K bytes
    - Viewed (0)
  6. test/fixedbugs/bug498.go

    // run
    
    // Copyright 2016 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.
    
    // Gccgo incorrectly rejected an assignment to multiple instances of
    // the same variable.
    
    package main
    
    var a int
    
    func F() {
    	a, a, a = 1, 2, 3
    }
    
    func main() {
    	F()
    	if a != 3 {
    		panic(a)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 14:19:45 UTC 2016
    - 366 bytes
    - Viewed (0)
  7. src/internal/types/testdata/fixedbugs/issue60688.go

    // (they are element types of the func type and therefore must
    // be identical to match).
    // The result is an error from type inference, rather than an
    // error from an assignment mismatch.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 12 18:44:59 UTC 2023
    - 607 bytes
    - Viewed (0)
  8. test/fixedbugs/issue54638.go

    // compile
    
    // Copyright 2022 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.
    
    // Issue 54638: composite literal assignment with
    // alignment > PtrSize causes ICE.
    
    package p
    
    import "sync/atomic"
    
    type S struct{ l any }
    
    type T struct {
    	H any
    	a [14]int64
    	f func()
    	x atomic.Int64
    }
    
    //go:noinline
    func (T) M(any) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 26 15:24:31 UTC 2022
    - 601 bytes
    - Viewed (0)
  9. test/fixedbugs/issue4620.go

    // run
    
    // Copyright 2013 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.
    
    // Issue 4620: map indexes are not evaluated before assignment of other elements
    
    package main
    
    import "fmt"
    
    func main() {
    	m := map[int]int{0:1}
    	i := 0
    	i, m[i] = 1, 2
    	if m[0] != 2 {
    		fmt.Println(m)
    		panic("m[i] != 2")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 398 bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/tests/device_assignment.mlir

    // RUN: tf-opt -tf-simple-device-assignment='default-device=gpu' %s | FileCheck %s
    
    // CHECK-LABEL: func @device_test
    func.func @device_test(%arg0: tensor<3x1xf32>) -> (tensor<3x3xf32>) {
    
      // CHECK: device = "gpu"
      %0 = "tf.Const"() {value = dense<[[1.0, 2.0, 3.0]]> : tensor<1x3xf32>} : () -> tensor<1x3xf32>
      // CHECK: device = "gpu"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:47:26 UTC 2022
    - 924 bytes
    - Viewed (0)
Back to top