Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 49 for identical (0.15 sec)

  1. src/cmd/compile/internal/types2/api_test.go

    		if X == nil || Y == nil {
    			t.Fatal("test must declare both X and Y")
    		}
    		if got := Identical(X.Type(), Y.Type()); got != test.want {
    			t.Errorf("Identical(%s, %s) = %t, want %t", X.Type(), Y.Type(), got, test.want)
    		}
    	}
    }
    
    func TestIdentical_issue15173(t *testing.T) {
    	// Identical should allow nil arguments and be symmetric.
    	for _, test := range []struct {
    		x, y Type
    		want bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
  2. src/go/types/api_test.go

    		if X == nil || Y == nil {
    			t.Fatal("test must declare both X and Y")
    		}
    		if got := Identical(X.Type(), Y.Type()); got != test.want {
    			t.Errorf("Identical(%s, %s) = %t, want %t", X.Type(), Y.Type(), got, test.want)
    		}
    	}
    }
    
    func TestIdentical_issue15173(t *testing.T) {
    	// Identical should allow nil arguments and be symmetric.
    	for _, test := range []struct {
    		x, y Type
    		want bool
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    	}
    
    	// Per-version fields may not all be set to identical values (top-level field should be used instead)
    	if hasIdenticalPerVersionSchema(spec.Versions) {
    		allErrs = append(allErrs, field.Invalid(fldPath.Child("versions"), spec.Versions, "per-version schemas may not all be set to identical values (top-level validation should be used instead)"))
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
  4. src/go/types/expr.go

    				if p == nil {
    					check.errorf(x, InvalidIndirection, invalidOp+"cannot indirect %s", x)
    					return false
    				}
    				if base != nil && !Identical(p.base, base) {
    					check.errorf(x, InvalidIndirection, invalidOp+"pointers of %s must have identical base types", x)
    					return false
    				}
    				base = p.base
    				return true
    			}) {
    				goto Error
    			}
    			x.mode = variable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/expr.go

    						if p == nil {
    							check.errorf(x, InvalidIndirection, invalidOp+"cannot indirect %s", x)
    							return false
    						}
    						if base != nil && !Identical(p.base, base) {
    							check.errorf(x, InvalidIndirection, invalidOp+"pointers of %s must have identical base types", x)
    							return false
    						}
    						base = p.base
    						return true
    					}) {
    						goto Error
    					}
    					x.mode = variable
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/NodeState.java

        }
    
        private boolean sameIncomingEdgesAsPreviousPass(int incomingEdgeCount) {
            // This is a heuristic, more than truth: it is possible that the 2 long hashs
            // are identical AND that the sizes of collections are identical, but it's
            // extremely unlikely (never happened on test cases even on large dependency graph)
            return cachedModuleResolutionFilter != null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 58.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types/type.go

    var Types [NTYPE]*Type
    
    var (
    	// Predeclared alias types. These are actually created as distinct
    	// defined types for better error messages, but are then specially
    	// treated as identical to their respective underlying types.
    	AnyType  *Type
    	ByteType *Type
    	RuneType *Type
    
    	// Predeclared error interface type.
    	ErrorType *Type
    	// Predeclared comparable interface type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFile.java

            return SmbEnumerationUtil.list(this, "*", ATTR_DIRECTORY | ATTR_HIDDEN | ATTR_SYSTEM, null, null);
        }
    
    
        /**
         * List the contents of this SMB resource. The list returned will be
         * identical to the list returned by the parameterless <code>list()</code>
         * method minus filenames filtered by the specified filter.
         *
         * @param filter
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (1)
  9. common-protos/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // consistent list may not be possible if the server configuration has changed or more than a few
      // minutes have passed. The resourceVersion field returned when using this continue value will be
      // identical to the value in the first response, unless you have received this token from an error
      // message.
      optional string continue = 3;
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // consistent list may not be possible if the server configuration has changed or more than a few
      // minutes have passed. The resourceVersion field returned when using this continue value will be
      // identical to the value in the first response, unless you have received this token from an error
      // message.
      optional string continue = 3;
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 53.7K bytes
    - Viewed (0)
Back to top