Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 677 for assignments (0.27 sec)

  1. src/cmd/compile/internal/syntax/testdata/issue60599.go

    // license that can be found in the LICENSE file.
    
    package p
    
    func _(x, y, z int) {
    	if x /* ERROR cannot use assignment x = y as value */ = y {}
    	if x || y /* ERROR cannot use assignment \(x || y\) = z as value */ = z {}
    	if x /* ERROR cannot use assignment x = \(y || z\) as value */ = y || z {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 06 14:42:44 UTC 2023
    - 409 bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/kotlinDsl/assignment/kotlin/build.gradle.kts

    plugins {
        `java-library`
    }
    
    // tag::assignment[]
    java {
        toolchain {
            languageVersion = JavaLanguageVersion.of(17)
        }
    }
    
    abstract class WriteJavaVersionTask : DefaultTask() {
        @get:Input
        abstract val javaVersion: Property<String>
        @get:OutputFile
        abstract val output: RegularFileProperty
    
        @TaskAction
        fun execute() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 740 bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl-plugins/src/main/kotlin/org/gradle/kotlin/dsl/plugins/dsl/KotlinDslCompilerPlugins.kt

    import org.gradle.internal.logging.slf4j.ContextAwareTaskLogger
    import org.gradle.kotlin.dsl.*
    import org.gradle.kotlin.dsl.provider.KotlinDslPluginSupport
    import org.jetbrains.kotlin.assignment.plugin.gradle.AssignmentExtension
    import org.jetbrains.kotlin.assignment.plugin.gradle.AssignmentSubplugin
    import org.jetbrains.kotlin.gradle.dsl.JvmTarget
    import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 18:03:28 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/testdata/issue23385.go

    // license that can be found in the LICENSE file.
    
    // Check error message for use of = instead of == .
    
    package p
    
    func _() {
    	if true || 0 /* ERROR cannot use assignment .* as value */ = 1 {
    	}
    }
    
    func _(a, b string) {
    	if a == "a" && b /* ERROR cannot use assignment .* as value */ = "b" {
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 18:02:18 UTC 2022
    - 406 bytes
    - Viewed (0)
  5. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/defaultCodeResolver.kt

            propertyAccessResolver.doResolvePropertyAccessToAssignable(analysisContext, propertyAccess)
    
        override fun doResolveAssignment(context: AnalysisContext, assignment: Assignment): AssignmentRecord? =
            statementResolver.doResolveAssignment(context, assignment)
    
        override fun doResolveLocalValue(context: AnalysisContext, localValue: LocalValue) =
            statementResolver.doResolveLocalValue(context, localValue)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/tf_device_assignment.cc

          }
        });
      }
    };
    
    #define GEN_PASS_DEF_TFDEVICEASSIGNMENTBYFUNCATTRPASS
    #include "tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.h.inc"
    
    // A pass to perform device assignment for TF dialect ops that do not
    // have device assignment, by using the device attribute of the function.
    // If device attribute is not found from the function, nothing is done.
    class TFDeviceAssignmentByFuncAttrPass
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 05 23:50:19 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  7. test/fixedbugs/issue30085.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	var c, d = 1, 2, 3 // ERROR "assignment mismatch: 2 variables but 3 values|wrong number of initializations|extra init expr"
    	var e, f, g = 1, 2 // ERROR "assignment mismatch: 3 variables but 2 values|wrong number of initializations|missing init expr"
    	_, _, _, _, _ = c, d, e, f, g
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:07:00 UTC 2023
    - 488 bytes
    - Viewed (0)
  8. src/internal/types/testdata/spec/range.go

    	for i /* ERROR "cannot use i (value of type MyInt) as int value in assignment" */, s /* ERROR "cannot use s (value of type MyString) as string value in assignment" */ = range f8 {
    		_, _ = mi, ms
    	}
    	for mi, ms := range f8 {
    		i, s = mi /* ERROR "cannot use mi (variable of type MyInt) as int value in assignment" */, ms /* ERROR "cannot use ms (variable of type MyString) as string value in assignment" */
    	}
    	for mi, ms = range f8 {
    		_, _ = mi, ms
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 04:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. test/escape_param.go

    }
    
    func paramArraySelfAssign(p *PairOfPairs) { // ERROR "p does not escape"
    	p.pairs[0] = p.pairs[1] // ERROR "ignoring self-assignment in p.pairs\[0\] = p.pairs\[1\]"
    }
    
    func paramArraySelfAssignUnsafeIndex(p *PairOfPairs) { // ERROR "leaking param content: p"
    	// Function call inside index disables self-assignment case to trigger.
    	p.pairs[zero()] = p.pairs[1]
    	p.pairs[zero()+1] = p.pairs[1]
    }
    
    type PairOfPairs struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 26 23:50:32 UTC 2021
    - 8.9K bytes
    - Viewed (0)
  10. src/cmd/cgo/gcc.go

    				}
    				p.mangleName(name)
    				f.Name[fpName] = name
    			}
    			r.Name = name
    			// Rewrite into call to _Cgo_ptr to prevent assignments. The _Cgo_ptr
    			// function is defined in out.go and simply returns its argument. See
    			// issue 7757.
    			expr = &ast.CallExpr{
    				Fun:  &ast.Ident{NamePos: (*r.Expr).Pos(), Name: "_Cgo_ptr"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
Back to top