Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 661 for Assignment (0.14 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. clause/set.go

    	}
    	sort.Strings(keys)
    
    	assignments := make([]Assignment, len(keys))
    	for idx, key := range keys {
    		assignments[idx] = Assignment{Column: Column{Name: key}, Value: values[key]}
    	}
    	return assignments
    }
    
    func AssignmentColumns(values []string) Set {
    	assignments := make([]Assignment, len(values))
    	for idx, value := range values {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Nov 29 03:02:44 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. clause/set_test.go

    func TestAssignments(t *testing.T) {
    	set := clause.Assignments(map[string]interface{}{
    		"name": "jinzhu",
    		"age":  18,
    	})
    
    	assignments := []clause.Assignment(set)
    
    	sort.Slice(assignments, func(i, j int) bool {
    		return strings.Compare(assignments[i].Column.Name, assignments[j].Column.Name) > 0
    	})
    
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Thu Jan 06 07:02:53 UTC 2022
    - 1.4K bytes
    - Viewed (0)
Back to top