Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 513 for Assignment (0.16 sec)

  1. analysis/analysis-api/testData/components/expressionInfoProvider/readWriteAccess/assignment.kt

    Anna Kozlova <******@****.***> 1709677574 +0100
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Mar 08 22:12:25 UTC 2024
    - 72 bytes
    - Viewed (0)
  2. analysis/analysis-api/testData/components/expressionInfoProvider/readWriteAccess/assignment.txt

    Anna Kozlova <******@****.***> 1709677574 +0100
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Mar 08 22:12:25 UTC 2024
    - 40 bytes
    - Viewed (0)
  3. src/go/types/assignments.go

    // if necessary by attempting to convert untyped values to the appropriate
    // type. context describes the context in which the assignment takes place.
    // Use T == nil to indicate assignment to an untyped blank identifier.
    // If the assignment check fails, x.mode is set to invalid.
    func (check *Checker) assignment(x *operand, T Type, context string) {
    	check.singleValue(x)
    
    	switch x.mode {
    	case invalid:
    		return // error reported before
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/assignments.go

    // This file implements initialization and assignment checks.
    
    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"fmt"
    	. "internal/types/errors"
    	"strings"
    )
    
    // assignment reports whether x can be assigned to a variable of type T,
    // if necessary by attempting to convert untyped values to the appropriate
    // type. context describes the context in which the assignment takes place.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  5. test/convert2.go

    		x int "foo"
    	}
    	var s S
    	var t T
    	var u struct {
    		x int "bar"
    	}
    	s = s
    	s = t // ERROR "cannot use .* in assignment|incompatible type"
    	s = u // ERROR "cannot use .* in assignment|incompatible type"
    	s = S(s)
    	s = S(t)
    	s = S(u)
    	t = u // ERROR "cannot use .* in assignment|incompatible type"
    	t = T(u)
    }
    
    func _() {
    	type E struct{ x int }
    	type S struct{ x E }
    	type T struct {
    		x E "foo"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 15:55:44 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/conversions1.go

    	type T struct {
    		x int "foo"
    	}
    	var s S
    	var t T
    	var u struct {
    		x int "bar"
    	}
    	s = s
    	s = t // ERRORx `cannot use .* in assignment`
    	s = u // ERRORx `cannot use .* in assignment`
    	s = S(s)
    	s = S(t)
    	s = S(u)
    	t = u // ERRORx `cannot use .* in assignment`
    	t = T(u)
    }
    
    func _() {
    	type E struct{ x int }
    	type S struct{ x E }
    	type T struct {
    		x E "foo"
    	}
    	var s S
    	var t T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/ResolutionTracer.kt

            }
            return result
        }
    
        override fun doResolveAssignment(context: AnalysisContext, assignment: Assignment): AssignmentRecord? {
            val result = statementResolver.doResolveAssignment(context, assignment)
            if (result != null) {
                assignmentResolutions[assignment] = result
            }
            return result
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 02 12:28:39 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  8. test/fixedbugs/issue48558.go

    package p
    
    func _(a, b, c int) {
    	_ = a
    	_ = a, b    // ERROR "assignment mismatch: 1 variable but 2 values"
    	_ = a, b, c // ERROR "assignment mismatch: 1 variable but 3 values"
    
    	_, _ = a // ERROR "assignment mismatch: 2 variables but 1 value"
    	_, _ = a, b
    	_, _ = a, b, c // ERROR "assignment mismatch: 2 variables but 3 values"
    
    	_, _, _ = a    // ERROR "assignment mismatch: 3 variables but 1 value"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 28 18:13:13 UTC 2023
    - 3K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/analysis/StatementResolver.kt

        fun AnalysisContext.doAnalyzeAssignment(assignment: Assignment): AssignmentRecord? {
            val lhsResolution = propertyAccessResolver.doResolvePropertyAccessToAssignable(this, assignment.lhs)
    
            return if (lhsResolution == null) {
                errorCollector.collect(ResolutionError(assignment.lhs, ErrorReason.UnresolvedReference(assignment.lhs)))
                errorCollector.collect(ResolutionError(assignment, ErrorReason.UnresolvedAssignmentLhs))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. test/fixedbugs/issue30087.go

    func main() {
    	var a, b = 1    // ERROR "assignment mismatch: 2 variables but 1 value|wrong number of initializations|cannot initialize"
    	_ = 1, 2        // ERROR "assignment mismatch: 1 variable but 2 values|number of variables does not match|cannot assign"
    	c, d := 1       // ERROR "assignment mismatch: 2 variables but 1 value|wrong number of initializations|cannot initialize"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 19 14:07:00 UTC 2023
    - 734 bytes
    - Viewed (0)
Back to top