Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 205 for asSubtype (0.21 sec)

  1. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/analysis/SubtypingTest.kt

        val schema = schemaFromTypes(
            TopLevelForSubtyping::class,
            listOf(
                TopLevelForSubtyping::class, SuperClass::class, SuperInterface::class, Subtype::class, NotASubtype::class
            )
        )
    
        @Test
        fun `type-checks assignment of subtype to superclass type`() {
            val result = schema.resolve(
                """
                superClassProp = sub()
                """.trimIndent()
            )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/MediaTypeTest.kt

      }
    
      @Test fun testInvalidParse() {
        assertInvalid("", "No subtype found for: \"\"")
        assertInvalid("/", "No subtype found for: \"/\"")
        assertInvalid("text", "No subtype found for: \"text\"")
        assertInvalid("text/", "No subtype found for: \"text/\"")
        assertInvalid("te<t/plain", "No subtype found for: \"te<t/plain\"")
        assertInvalid(" text/plain", "No subtype found for: \" text/plain\"")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/mkbuiltin.go

    		if t.Len == nil {
    			return fmt.Sprintf("types.NewSlice(%s)", i.subtype(t.Elt))
    		}
    		return fmt.Sprintf("types.NewArray(%s, %d)", i.subtype(t.Elt), intconst(t.Len))
    	case *ast.ChanType:
    		dir := "types.Cboth"
    		switch t.Dir {
    		case ast.SEND:
    			dir = "types.Csend"
    		case ast.RECV:
    			dir = "types.Crecv"
    		}
    		return fmt.Sprintf("types.NewChan(%s, %s)", i.subtype(t.Value), dir)
    	case *ast.FuncType:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/api/internal/TypedDomainObjectContainerWrapperTest.groovy

                getName() >> name
            }
        }
    
        SubType subtype(def name) {
            Stub(SubType) {
                getName() >> name
            }
        }
    
        OtherSubType otherSubtype(def name) {
            Stub(OtherSubType) {
                getName() >> name
            }
        }
        interface Type extends Named {}
        interface SubType extends Type {}
        interface OtherSubType extends Type {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 10 22:34:19 UTC 2021
    - 5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/net/MediaType.java

        return create(AUDIO_TYPE, subtype);
      }
    
      /**
       * Creates a media type with the "font" type and the given subtype.
       *
       * @throws IllegalArgumentException if subtype is invalid
       */
      static MediaType createFontType(String subtype) {
        return create(FONT_TYPE, subtype);
      }
    
      /**
       * Creates a media type with the "image" type and the given subtype.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 07 16:17:10 UTC 2023
    - 46.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/net/MediaType.java

        return create(AUDIO_TYPE, subtype);
      }
    
      /**
       * Creates a media type with the "font" type and the given subtype.
       *
       * @throws IllegalArgumentException if subtype is invalid
       */
      static MediaType createFontType(String subtype) {
        return create(FONT_TYPE, subtype);
      }
    
      /**
       * Creates a media type with the "image" type and the given subtype.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 07 16:17:10 UTC 2023
    - 46.2K bytes
    - Viewed (0)
  7. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10SubtypingComponent.kt

        }
    
        override fun isSubTypeOf(subType: KaType, superType: KaType, errorTypePolicy: KaSubtypingErrorTypePolicy): Boolean {
            require(subType is KaFe10Type)
            require(superType is KaFe10Type)
            return getTypeCheckerFor(errorTypePolicy).isSubtypeOf(subType.fe10Type, superType.fe10Type)
        }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirSubtypingComponent.kt

            )
        }
    
        override fun isSubTypeOf(subType: KaType, superType: KaType, errorTypePolicy: KaSubtypingErrorTypePolicy): Boolean {
            superType.assertIsValidAndAccessible()
            check(subType is KaFirType)
            check(superType is KaFirType)
            return AbstractTypeChecker.isSubtypeOf(
                createTypeCheckerContext(errorTypePolicy),
                subType.coneType,
                superType.coneType,
            )
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/translate/mlir_roundtrip_flags.cc

          return errors::InvalidArgument("Invalid type '", type, "'");
        } else if (parts.size() == 3) {
          // First part is the type, second is the subtype
          ArrayInfo::SubTypeInfo subtype;
          TF_RETURN_IF_ERROR(HandleSubtype(parts[1], &subtype));
          info.subtypes.push_back(std::move(subtype));
        }
        if (!DataType_Parse(parts[0], &info.imported_dtype)) {
          return errors::FailedPrecondition(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/reflect/TypeResolverTest.java

        Type subtype = new TypeCapture<TypedKeyMap<T>>() {}.capture();
        assertEquals(
            new TypeCapture<TypedKeyMap<String>>() {}.capture(),
            new TypeResolver()
                .where(
                    new TypeCapture<Map<Integer, T>>() {}.capture(),
                    new TypeCapture<Map<?, String>>() {}.capture())
                .resolveType(subtype));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top