- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 596 for Constraint (0.23 sec)
-
src/internal/types/testdata/examples/typesets.go
} // A type parameter may not be embedded in an interface; // so it can also not be used as a constraint. func _[A any, B A /* ERROR "cannot use a type parameter as constraint" */]() {} func _[A any, B, C A /* ERROR "cannot use a type parameter as constraint" */]() {} // Error messages refer to the type constraint as it appears in the source. // (No implicit interface should be exposed.) func _[T string](x T) T {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 1.4K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/Dependencies.java
* * @param dependencyConstraintNotation dependency constraint to add * @return the new dependency constraint * @see DependencyConstraintFactory#create(CharSequence) Valid dependency constraint notation for this method * @since 8.7 */ default DependencyConstraint constraint(CharSequence dependencyConstraintNotation) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Apr 22 05:34:03 UTC 2024 - 6.7K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/artifacts/DependencyMetadata.java
* Describes a metadata about a dependency - direct dependency or dependency constraint - declared in a resolved component's metadata. * * @param <SELF> type extending this interface * @since 4.4 */ public interface DependencyMetadata<SELF extends DependencyMetadata> { /** * Returns the group of the module that is targeted by this dependency or dependency constraint.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Sep 16 13:58:18 UTC 2020 - 2.9K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/DependencyCollector.java
/** * Add a dependency constraint. * * @param dependencyConstraint dependency constraint to add * @since 8.7 */ void addConstraint(DependencyConstraint dependencyConstraint); /** * Add a dependency constraint and configure it. * * @param dependencyConstraint dependency constraint to add
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 09 22:19:12 UTC 2024 - 8K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue42758.go
switch x.(type) { case T: case T /* ERROR "duplicate case" */ : } } type constraint interface { ~int } func _[T constraint](x interface{}){ switch x.(type) { case T: // ok to use a type parameter even if type set contains int case int: } } func _(x constraint /* ERROR "contains type constraints" */ ) { switch x.(type) { // no need to report another error }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 649 bytes - Viewed (0) -
src/go/doc/testdata/generics.1.golden
PACKAGE generics IMPORTPATH testdata/generics FILENAMES testdata/generics.go FUNCTIONS // AnotherFunc has an implicit constraint interface. Neither type ... func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) // Func has an instantiated constraint. func Func[T Constraint[string, Type[int]]]() // Single is not a factory function. func Single[T any]() *T // Slice is not a factory function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 1.6K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/DependenciesExtensions.kt
// Add a constraint by String implementation(constraint("org:foo:1.0")) // is getImplementation().addConstraint(constraint("org:foo:1.0")) // Add a constraint on projects implementation(constraint(project(":path"))) // is getImplementation().addConstraint(constraint(project(":path")))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Feb 12 18:51:29 UTC 2024 - 9.4K bytes - Viewed (0) -
platforms/software/version-control/src/main/java/org/gradle/vcs/internal/resolver/VcsVersionSelectionCache.java
String cacheKey = constraintCacheKey(repository, constraint); return resolvedVersions.get(cacheKey); } public void putWorkingDirForSelector(VersionControlRepositoryConnection repository, VersionConstraint constraint, File workingDir) { String cacheKey = constraintCacheKey(repository, constraint); resolvedVersions.put(cacheKey, workingDir);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 3.2K bytes - Viewed (0) -
src/go/doc/testdata/generics.0.golden
PACKAGE generics IMPORTPATH testdata/generics FILENAMES testdata/generics.go FUNCTIONS // AnotherFunc has an implicit constraint interface. Neither type ... func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) // Func has an instantiated constraint. func Func[T Constraint[string, Type[int]]]() // Single is not a factory function. func Single[T any]() *T // Slice is not a factory function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 1.8K bytes - Viewed (0) -
src/go/doc/testdata/generics.2.golden
PACKAGE generics IMPORTPATH testdata/generics FILENAMES testdata/generics.go FUNCTIONS // AnotherFunc has an implicit constraint interface. Neither type ... func AnotherFunc[T ~struct{ f int }](_ struct{ f int }) // Func has an instantiated constraint. func Func[T Constraint[string, Type[int]]]() // Single is not a factory function. func Single[T any]() *T // Slice is not a factory function.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 10 18:06:32 UTC 2021 - 1.8K bytes - Viewed (0)