Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 327 for incomparable (0.15 sec)

  1. maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/MethodMap.java

                if (c2MoreSpecific) {
                    // Incomparable due to cross-assignable arguments (i.e.
                    // foo(String, Object) vs. foo(Object, String))
                    return INCOMPARABLE;
                }
    
                return MORE_SPECIFIC;
            }
    
            if (c2MoreSpecific) {
                return LESS_SPECIFIC;
            }
    
            // Incomparable due to non-related arguments (i.e.
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Oct 17 17:55:08 UTC 2023
    - 14.1K bytes
    - Viewed (0)
  2. src/crypto/internal/edwards25519/edwards25519.go

    type Point struct {
    	// Make the type not comparable (i.e. used with == or as a map key), as
    	// equivalent points can be represented by different Go values.
    	_ incomparable
    
    	// The point is internally represented in extended coordinates (X, Y, Z, T)
    	// where x = X/Z, y = Y/Z, and xy = T/Z per https://eprint.iacr.org/2008/522.
    	x, y, z, t field.Element
    }
    
    type incomparable [0]func()
    
    func checkInitialized(points ...*Point) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 13 19:21:54 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. src/go/types/predicates.go

    }
    
    // Comparable reports whether values of type T are comparable.
    func Comparable(T Type) bool {
    	return comparable(T, true, nil, nil)
    }
    
    // If dynamic is set, non-type parameter interfaces are always comparable.
    // If reportf != nil, it may be used to report why T is not comparable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/predicates.go

    }
    
    // Comparable reports whether values of type T are comparable.
    func Comparable(T Type) bool {
    	return comparable(T, true, nil, nil)
    }
    
    // If dynamic is set, non-type parameter interfaces are always comparable.
    // If reportf != nil, it may be used to report why T is not comparable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/stmt.go

    			} else if t.IsInterface() && !n1.Type().IsInterface() && !types.IsComparable(n1.Type()) {
    				base.ErrorfAt(ncase.Pos(), errors.UndefinedOp, "invalid case %L in switch (incomparable type)", n1)
    			} else {
    				op1, _ := assignOp(n1.Type(), t)
    				op2, _ := assignOp(t, n1.Type())
    				if op1 == ir.OXXX && op2 == ir.OXXX {
    					if n.Tag != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:10:54 UTC 2023
    - 17.8K bytes
    - Viewed (0)
  6. src/go/types/typeset.go

    func (s *_TypeSet) IsMethodSet() bool { return !s.comparable && s.terms.isAll() }
    
    // IsComparable reports whether each type in the set is comparable.
    func (s *_TypeSet) IsComparable(seen map[Type]bool) bool {
    	if s.terms.isAll() {
    		return s.comparable
    	}
    	return s.is(func(t *term) bool {
    		return t != nil && comparable(t.typ, false, seen, nil)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/typeset.go

    func (s *_TypeSet) IsMethodSet() bool { return !s.comparable && s.terms.isAll() }
    
    // IsComparable reports whether each type in the set is comparable.
    func (s *_TypeSet) IsComparable(seen map[Type]bool) bool {
    	if s.terms.isAll() {
    		return s.comparable
    	}
    	return s.is(func(t *term) bool {
    		return t != nil && comparable(t.typ, false, seen, nil)
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/base/PredicatesTest.java

      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_interface() {
        Predicate<@Nullable Object> isComparable = Predicates.instanceOf(Comparable.class);
    
        assertTrue(isComparable.apply(1));
        assertTrue(isComparable.apply(2.0f));
        assertTrue(isComparable.apply(""));
        assertFalse(isComparable.apply(null));
      }
    
      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_equality() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_interface() {
        Predicate<@Nullable Object> isComparable = Predicates.instanceOf(Comparable.class);
    
        assertTrue(isComparable.apply(1));
        assertTrue(isComparable.apply(2.0f));
        assertTrue(isComparable.apply(""));
        assertFalse(isComparable.apply(null));
      }
    
      @GwtIncompatible // Predicates.instanceOf
      public void testIsInstanceOf_equality() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/instantiate.go

    	checkComparability := func() bool {
    		if !Ti.IsComparable() {
    			return true
    		}
    		// If T is comparable, V must be comparable.
    		// If V is strictly comparable, we're done.
    		if comparable(V, false /* strict comparability */, nil, nil) {
    			return true
    		}
    		// For constraint satisfaction, use dynamic (spec) comparability
    		// so that ordinary, non-type parameter interfaces implement comparable.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top