- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 60 for Subtype1 (0.34 sec)
-
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/UserTypesCodecTest.kt
@Test fun `can handle anonymous enum subtypes`() { EnumSuperType.values().forEach { assertThat( configurationCacheRoundtripOf(it), sameInstance(it) ) } } enum class EnumSuperType { SubType1 { override fun displayName() = "one" }, SubType2 { override fun displayName() = "two"
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 3.4K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/annotations/TypeAnnotationMetadataStore.java
* * <p> * Property annotations are inherited from super-types on a per-category basis: subtypes can override each super-type annotation category separately. * If a subtype doesn't override a super-type defined category, the corresponding annotation in that category gets inherited. * Subtypes can mark methods to be ignored by using an ignore annotation. * Ignored methods don't inherit super-type annotations. * </p> *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 2.6K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtSubtypingComponent.kt
/** * [KaSubtypingErrorTypePolicy] determines the treatment of error types in type equality and subtyping checks. */ public enum class KaSubtypingErrorTypePolicy { /** * Error types are not considered equal to or subtypes of any other type. * * [STRICT] is the default policy for the following reasons: *
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:35 UTC 2024 - 4K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-tooling-models/src/main/kotlin/org/gradle/declarative/dsl/schema/FunctionSemantics.kt
import java.io.Serializable @ToolingModelContract(subTypes = [ FunctionSemantics.ConfigureSemantics::class, FunctionSemantics.NewObjectFunctionSemantics::class, FunctionSemantics.Builder::class ]) sealed interface FunctionSemantics : Serializable { val returnValueType: DataTypeRef @ToolingModelContract(subTypes = [ AccessAndConfigure::class, AddAndConfigure::class ])
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 17 09:43:01 UTC 2024 - 3.3K bytes - Viewed (0) -
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) -
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) -
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/subtyping/AbstractSemanticSubtypingTest.kt
" type policy.", ) val IS_SUBTYPE by stringDirective( description = "Whether `type1` is a subtype of `type2` (`true` or `false`).", ) val IS_SUBTYPE_LENIENT by stringDirective( description = "Whether `type1` is a subtype of `type2` (`true` or `false`) when using the `${KaSubtypingErrorTypePolicy.LENIENT}`" + " error type policy.", ) }
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 5.9K bytes - Viewed (0) -
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) -
platforms/core-configuration/declarative-dsl-tooling-models/src/main/kotlin/org/gradle/declarative/dsl/schema/DataType.kt
@ToolingModelContract(subTypes = [ DataType.NullType::class, DataType.UnitType::class, DataType.ConstantType::class, DataType.IntDataType::class, DataType.LongDataType::class, DataType.StringDataType::class, DataType.BooleanDataType::class, DataClass::class ]) sealed interface DataType : Serializable { @ToolingModelContract(subTypes = [ IntDataType::class,
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:47 UTC 2024 - 1.7K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheIncompatibleTasksIntegrationTest.groovy
serializationProblem("Task `:notDeclared` of type `Broken`: cannot serialize object of type 'org.gradle.api.internal.artifacts.configurations.DefaultConfigurationContainer', a subtype of 'org.gradle.api.artifacts.ConfigurationContainer', as these are not supported with the...
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 10.3K bytes - Viewed (0)