Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 677 for assignments (0.14 sec)

  1. 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)
  2. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/prettyPrintResults.kt

                        recurseDeeper(it)
                        appendLine()
                    }
                    appendIndented(")")
                }
    
                is Assignment -> {
                    append("Assignment [${source()}] (\n")
                    appendNextIndented("lhs = ")
                    recurseDeeper(current.lhs)
                    appendLine()
                    appendNextIndented("rhs = ")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/support/LazyGroovySupport.java

    import org.gradle.api.file.ConfigurableFileCollection;
    import org.gradle.api.provider.Property;
    import org.gradle.internal.instantiation.generator.AsmBackedClassGenerator;
    
    /**
     * An interface used to support lazy assignment for types like {@link Property} and {@link ConfigurableFileCollection} in Groovy DSL.
     * Call to this interface is generated via {@link AsmBackedClassGenerator}.
     */
    public interface LazyGroovySupport {
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  10. test/fixedbugs/issue52953.go

    // run
    
    // 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 52953: miscompilation for composite literal assignment
    // when LHS is address-taken.
    
    package main
    
    type T struct {
    	Field1 bool
    }
    
    func main() {
    	var ret T
    	ret.Field1 = true
    	var v *bool = &ret.Field1
    	ret = T{Field1: *v}
    	check(ret.Field1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 18 18:24:59 UTC 2022
    - 488 bytes
    - Viewed (0)
Back to top