Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 677 for assignments (0.24 sec)

  1. test/fixedbugs/bug143.go

    		_, _ = x, ok;
    	}
    	{
    		x, ok := f()["key"];
    		_, _ = x, ok;
    	}
    	{
    		var x int;
    		var ok bool;
    		x, ok = f()["key"];
    		_, _ = x, ok;
    	}
    }
    
    /*
     * bug143.go:19: assignment count mismatch: 2 = 1
     * bug143.go:18: x: undefined
     * bug143.go:18: ok: undefined
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 647 bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/ConfigurableFileCollectionExtensionsTest.kt

    import org.hamcrest.CoreMatchers.sameInstance
    import org.hamcrest.MatcherAssert.assertThat
    
    import org.junit.Test
    
    
    class ConfigurableFileCollectionExtensionsTest {
    
        @Test
        fun `assignment to delegated property means #setFrom`() {
    
            val fileCollection = mock<ConfigurableFileCollection>()
            var delegatedProperty by fileCollection
    
            val value = mock<ConfigurableFileCollection>()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 733 bytes
    - Viewed (0)
  3. test/fixedbugs/bug069.go

    package main
    
    func main() {
    	c := make(chan int);
    	ok := false;
    	var i int;
    	
    	i, ok = <-c;  // works
    	_, _ = i, ok;
    	
    	ca := new([2]chan int);
    	i, ok = <-(ca[0]);  // fails: c.go:11: bad shape across assignment - cr=1 cl=2
    	_, _ = i, ok;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 413 bytes
    - Viewed (0)
  4. test/fixedbugs/bug075.go

    package main
    
    type T struct { m map[int]int }
    func main() {
    	t := new(T);
    	t.m = make(map[int]int);
    	var x int;
    	var ok bool;
    	x, ok = t.m[0];  //bug075.go:11: bad shape across assignment - cr=1 cl=2
    	_, _ = x, ok;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:49:30 UTC 2012
    - 385 bytes
    - Viewed (0)
  5. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-param-util-generated.h

    class ValueArray1 {
     public:
      explicit ValueArray1(T1 v1) : v1_(v1) {}
    
      template <typename T>
      operator ParamGenerator<T>() const { return ValuesIn(&v1_, &v1_ + 1); }
    
     private:
      // No implementation - assignment is unsupported.
      void operator=(const ValueArray1& other);
    
      const T1 v1_;
    };
    
    template <typename T1, typename T2>
    class ValueArray2 {
     public:
      ValueArray2(T1 v1, T2 v2) : v1_(v1), v2_(v2) {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 187.7K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/atomic/doc.go

    // using the sync/atomic package.
    //
    // # Analyzer atomic
    //
    // atomic: check for common mistakes using the sync/atomic package
    //
    // The atomic checker looks for assignment statements of the form:
    //
    //	x = atomic.AddUint64(&x, 1)
    //
    // which are not atomic.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 09 01:28:01 UTC 2023
    - 505 bytes
    - Viewed (0)
  7. analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/components/readWriteAccess/FirStandaloneNormalAnalysisSourceModuleReadWriteAccessTestGenerated.java

      }
    
      @Test
      @TestMetadata("assignment.kt")
      public void testAssignment() {
        runTest("analysis/analysis-api/testData/components/expressionInfoProvider/readWriteAccess/assignment.kt");
      }
    
      @Test
      @TestMetadata("assignmentPlusEq.kt")
      public void testAssignmentPlusEq() {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Fri Mar 08 22:12:25 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. test/fixedbugs/bug450.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Issue 3899: 8g incorrectly thinks a variable is
    // "set and not used" and elides an assignment, causing
    // variables to end up with wrong data.
    //
    // The reason is a miscalculation of variable width.
    
    package main
    
    func bar(f func()) {
    	f()
    }
    
    func foo() {
    	f := func() {}
    	if f == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 21:10:19 UTC 2022
    - 496 bytes
    - Viewed (0)
  9. src/internal/types/testdata/fixedbugs/issue54424.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func f[P ~*T, T any]() {
    	var p P
    	var tp *T
    	tp = p // this assignment is valid
    	_ = tp
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 05 14:01:09 UTC 2023
    - 262 bytes
    - Viewed (0)
  10. common/config/tslint.json

            "max-line-length": {
                "options": [160]
            },
            "arrow-parens": false,
            "new-parens": true,
            "no-arg": true,
            "no-bitwise": true,
            "no-conditional-assignment": true,
            "no-consecutive-blank-lines": true,
            "no-console": {
                "severity": "warning",
                "options": ["debug", "info", "log", "time", "timeEnd", "trace"]
            },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Sep 11 23:32:21 UTC 2019
    - 631 bytes
    - Viewed (0)
Back to top