Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 370 for gotType (0.47 sec)

  1. src/internal/syscall/windows/registry/registry_test.go

    		return
    	}
    }
    
    func testGetStringValue(t *testing.T, k registry.Key, test ValueTest) {
    	got, gottype, err := k.GetStringValue(test.Name)
    	if err != nil {
    		t.Errorf("GetStringValue(%s) failed: %v", test.Name, err)
    		return
    	}
    	if got != test.Value {
    		t.Errorf("want %s value %q, got %q", test.Name, test.Value, got)
    		return
    	}
    	if gottype != test.Type {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:19:00 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/typexpr.go

    	// If we want a type but don't have one, stop right here and avoid potential problems
    	// with missing underlying types. This also gives better error messages in some cases
    	// (see go.dev/issue/65344).
    	_, gotType := obj.(*TypeName)
    	if !gotType && wantType {
    		check.errorf(e, NotAType, "%s is not a type", obj.Name())
    		// avoid "declared but not used" errors
    		// (don't use Checker.use - we don't want to evaluate too much)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. src/go/types/typexpr.go

    	// If we want a type but don't have one, stop right here and avoid potential problems
    	// with missing underlying types. This also gives better error messages in some cases
    	// (see go.dev/issue/65344).
    	_, gotType := obj.(*TypeName)
    	if !gotType && wantType {
    		check.errorf(e, NotAType, "%s is not a type", obj.Name())
    		// avoid "declared but not used" errors
    		// (don't use Checker.use - we don't want to evaluate too much)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  4. src/encoding/gob/type.go

    		return tInt.gobType(), nil
    
    	case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
    		return tUint.gobType(), nil
    
    	case reflect.Float32, reflect.Float64:
    		return tFloat.gobType(), nil
    
    	case reflect.Complex64, reflect.Complex128:
    		return tComplex.gobType(), nil
    
    	case reflect.String:
    		return tString.gobType(), nil
    
    	case reflect.Interface:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

          }
        }
        assertNotNull(new MyLocalClass<String>().getType());
      }
    
      private static <T> Type staticMethodWithAnonymousClass() {
        return new Object() {
          Type getType() {
            return new TypeToken<T>(getClass()) {}.getType();
          }
        }.getType();
      }
    
      public void testAnonymousClassInsideStaticMethod() {
        assertNotNull(staticMethodWithAnonymousClass());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

          }
        }
        assertNotNull(new MyLocalClass<String>().getType());
      }
    
      private static <T> Type staticMethodWithAnonymousClass() {
        return new Object() {
          Type getType() {
            return new TypeToken<T>(getClass()) {}.getType();
          }
        }.getType();
      }
    
      public void testAnonymousClassInsideStaticMethod() {
        assertNotNull(staticMethodWithAnonymousClass());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

      if (!reshape_before) return failure();
    
      if (!dot.getLhs().getType().hasStaticShape() ||
          !dot.getRhs().getType().hasStaticShape() ||
          !reshape_before.getOperand().getType().hasStaticShape() ||
          !dot.getType().hasStaticShape() ||
          !reshape_after.getType().hasStaticShape()) {
        return rewriter.notifyMatchFailure(reshape_after,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolver.java

            if (expression.getType() == IncludeType.SYSTEM) {
                visitor.visitSystem(expression);
            } else if (expression.getType() == IncludeType.QUOTED) {
                visitor.visitQuoted(expression);
            } else if (expression.getType() == IncludeType.IDENTIFIER) {
                visitor.visitIdentifier(expression);
            } else if (expression.getType() == IncludeType.ARGS_LIST) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 24.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        if (!mlir::cast<ShapedType>(lhs.getType()).hasStaticShape() ||
            !mlir::cast<ShapedType>(rhs.getType()).hasStaticShape() ||
            !mlir::cast<ShapedType>(cond.getType()).hasStaticShape()) {
          return rewriteOpWithDynamicInput(op, rewriter);
        }
    
        auto lhs_shape = mlir::cast<ShapedType>(lhs.getType()).getShape();
        auto rhs_shape = mlir::cast<ShapedType>(rhs.getType()).getShape();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/decompose_optionals.cc

        for (auto [call_arg, body_arg] :
             llvm::zip(call.getOperation()->getOperands(),
                       f.getBody().front().getArguments())) {
          if (call_arg.getType() != body_arg.getType()) {
            body_arg.setType(call_arg.getType());
            changed = true;
          }
        }
        if (changed) {
          rewriter.finalizeOpModification(f);
          return success();
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top