Search Options

Results per page
Sort
Preferred Languages
Advance

Results 211 - 220 of 252 for assignments (0.18 sec)

  1. src/internal/types/testdata/check/decls4.go

    	A0 = T0
    	A1 = T1
    	A2 = T2
    	A3 = T3
    	A4 = T4
    
    	A10 = [10]int
    	A11 = []byte
    	A12 = struct {
    		x int
    	}
    	A13 = interface{
    		m() A2
    	}
    	A14 = func(int, A0) chan A2
    )
    
    // check assignment compatibility due to equality of types
    var (
    	xi_ int
    	ai Ai = xi_
    
    	x0 T0
    	a0 A0 = x0
    
    	x1 T1
    	a1 A1 = x1
    
    	x2 T2
    	a2 A2 = x2
    
    	x3 T3
    	a3 A3 = x3
    
    	x4 T4
    	a4 A4 = x4
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 17:24:42 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtDataFlowInfoProvider.kt

         * Such as, there are both inner and outer loop `break`, or a `break` and `continue` for the same loop.
         */
        public val hasMultipleJumpTargets: Boolean,
    
        /**
         * local variable reassignments found in given statements.
         */
        public val variableReassignments: List<VariableReassignment>
    ) {
        /**
         * Represents a default expression (generally, a last given statement if it has a meaningful result type).
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/container/ring/ring.go

    // after r. The result points to the element following the
    // last element of s after insertion.
    func (r *Ring) Link(s *Ring) *Ring {
    	n := r.Next()
    	if s != nil {
    		p := s.Prev()
    		// Note: Cannot use multiple assignment because
    		// evaluation order of LHS is not specified.
    		r.next = s
    		s.prev = r
    		n.prev = p
    		p.next = n
    	}
    	return n
    }
    
    // Unlink removes n % r.Len() elements from the ring r, starting
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 01 18:18:07 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/extract_outside_compilation_pass.h

    // new_func_name: new function name for rewritten XLA computation func.
    // host_compute_core: mapping from outside compilation cluster name to XLA
    //   device assignment.
    // fld: FunctionLibraryDefinition object.
    // host_graph: Graph object to store host side graph for all outside
    //   compilations within this XLA computation func. If there is no outside
    //   compilation, it will be empty.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  5. src/internal/types/testdata/fixedbugs/issue62157.go

    	B = f(a, b, B)
    	B = f(a, B, b)
    	B = f(b, B, a)
    	B = f(b, a, B)
    	B = f(B, a, b)
    	B = f(B, b, a)
    
    	// verify type error
    	A = f /* ERROR "cannot use f(B, b, a) (value of type namedB) as namedA value in assignment" */ (B, b, a)
    }
    
    // Test case 4: some more combinations
    
    func _() {
    	type A chan int
    	type B chan int
    	type C = chan int
    	type D = chan<- int
    
    	var a A
    	var b B
    	var c C
    	var d D
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 23:22:35 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  6. src/internal/types/testdata/examples/inference.go

    }
    
    // "Reverse" type inference is not yet permitted.
    
    func f[P any](P) {}
    
    // This must not crash.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 02 16:49:45 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  7. src/go/format/format.go

    // Node formats node in canonical gofmt style and writes the result to dst.
    //
    // The node type must be *[ast.File], *[printer.CommentedNode], [][ast.Decl],
    // [][ast.Stmt], or assignment-compatible to [ast.Expr], [ast.Decl], [ast.Spec],
    // or [ast.Stmt]. Node does not modify node. Imports are not sorted for
    // nodes representing partial source files (for instance, if the node is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. src/internal/types/errors/codes_test.go

    	// this test enforces some style conventions.
    	forbiddenInIdent := []string{
    		// use invalid instead
    		"illegal",
    		// words with a common short-form
    		"argument",
    		"assertion",
    		"assignment",
    		"boolean",
    		"channel",
    		"condition",
    		"declaration",
    		"expression",
    		"function",
    		"initial", // use init for initializer, initialization, etc.
    		"integer",
    		"interface",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 20:41:45 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/DomResolutionTest.kt

                addAndConfigure("incorrect signature", 1) {
                    number = 123
                    number = f(illegalPropertyUsage) // for now, it is reported as a single error; do we want it to be an assignment of an erroneous value?
                }
                unknown("test2")
                complexValueOne = "type mismatch"
                noSuchFunction(two("three"))
                nested {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  10. src/internal/types/testdata/spec/range_int.go

    	}
    	for j = range 1.1 /* ERROR "cannot range over 1.1 (untyped float constant)" */ {
    	}
    	for j = range 10.0 /* ERROR "cannot range over 10.0 (untyped float constant 10)" */ {
    	}
    
    	// There shouldn't be assignment errors if there are more iteration variables than permitted.
    	var i int
    	_ = i
    	for i, j /* ERROR "range over 10 (untyped int constant) permits only one iteration variable" */ = range 10 {
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:56:00 UTC 2024
    - 4.7K bytes
    - Viewed (0)
Back to top