Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 1,021 for Constraint (0.14 sec)

  1. src/cmd/vendor/golang.org/x/tools/internal/typeparams/normalize.go

    // is deterministic.
    func StructuralTerms(tparam *types.TypeParam) ([]*types.Term, error) {
    	constraint := tparam.Constraint()
    	if constraint == nil {
    		return nil, fmt.Errorf("%s has nil constraint", tparam)
    	}
    	iface, _ := constraint.Underlying().(*types.Interface)
    	if iface == nil {
    		return nil, fmt.Errorf("constraint is %T, not *types.Interface", constraint.Underlying())
    	}
    	return InterfaceTermSet(iface)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/artifacts/dsl/dependencies/DependenciesExtensionModule.java

            call(self, dependencyOrDependencyConstraint, null);
        }
    
        /**
         * Add a dependency or dependency constraint.
         *
         * @param dependencyOrDependencyConstraint dependency or dependency constraint to add
         * @param configuration an action to configure the dependency or dependency constraint
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 22 14:04:39 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. src/internal/types/testdata/fixedbugs/issue50426.go

    }](v T) {
    }
    
    func _() {
    	var v A2
    	// Use function type inference to infer type A2 for T.
    	// Don't use constraint type inference before function
    	// type inference for typed arguments, otherwise it would
    	// infer type [2]uint64 for T which doesn't have method m
    	// (was the bug).
    	f[int](v)
    }
    
    // Keep using constraint type inference before function type
    // inference for untyped arguments so we infer type float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/userguide/dep-man/03-controlling-transitive-dependencies/dependency_constraints.adoc

    Otherwise, the constraint has no effect.
    Dependency constraints can also define a <<rich_versions.adoc#rich-version-constraints,rich version constraint>> and support <<rich_versions.adoc#sec:strict-version,strict versions>> to enforce a version even if it contradicts with the version defined by a transitive dependency (e.g. if the version needs to be downgraded).
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 29 17:38:38 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/result/DependencyResultSerializer.java

                return new DetachedResolvedGraphDependency(requested, selectedId, null, null, constraint, fromVariant, selectedVariantId);
            } else if (resultByte == SUCCESSFUL_NOTHING_SELECTED) {
                long selectedId = decoder.readSmallLong();
                return new DetachedResolvedGraphDependency(requested, selectedId, null, null, constraint, fromVariant, null);
            } else if (resultByte == FAILED) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. platforms/ide/tooling-api/src/test/groovy/org/gradle/integtests/tooling/fixture/GradleVersionSpecTest.groovy

     */
    
    package org.gradle.integtests.tooling.fixture
    
    import org.gradle.util.GradleVersion
    import spock.lang.Specification
    
    class GradleVersionSpecTest extends Specification {
        def "greater-than-or-equal version constraint matches all versions with specified base version and later"() {
            def spec = new GradleVersionSpec().toSpec(">=1.0")
    
            expect:
            spec.isSatisfiedBy(GradleVersion.version("1.0"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 06:17:20 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/test/resources/org/gradle/kotlin/dsl/accessors/tasks/PrintAccessors-expected-output.txt

            add("api", constraintNotation)
    
    
        /**
         * Adds a dependency constraint to the 'api' configuration.
         *
         * @param constraintNotation the dependency constraint notation
         * @param block the block to use to configure the dependency constraint
         *
         * @return the added dependency constraint
         *
         * @see [DependencyConstraintHandler.add]
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 15.1K bytes
    - Viewed (0)
  8. src/internal/types/testdata/fixedbugs/issue50755.go

    // The core type of M2 unifies with the type of m1
    // during function argument type inference.
    // M2's constraint is unnamed.
    func f1[K1 comparable, E1 any](m1 map[K1]E1) {}
    
    func f2[M2 map[string]int](m2 M2) {
    	f1(m2)
    }
    
    // The core type of M3 unifies with the type of m1
    // during function argument type inference.
    // M3's constraint is named.
    type Map3 map[string]int
    
    func f3[M3 Map3](m3 M3) {
    	f1(m3)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/testdata/tparams.go

    package p
    
    type t[a, b /* ERROR missing type constraint */ ] struct{}
    type t[a t, b t, c /* ERROR missing type constraint */ ] struct{}
    type t struct {
    	t [n]byte
    	t[a]
    	t[a, b]
    }
    type t interface {
    	t[a]
    	m /* ERROR method must have no type parameters */ [_ _, /* ERROR mixed */ _]()
    	t[a, b]
    }
    
    func f[ /* ERROR empty type parameter list */ ]()
    func f[a, b /* ERROR missing type constraint */ ]()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 01 17:49:03 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. platforms/software/plugins-version-catalog/src/main/java/org/gradle/api/plugins/catalog/internal/DependenciesAwareVersionCatalogBuilder.java

            }
        }
    
        private void collectConstraints(DependencyConstraintSet allConstraints, Set<ModuleIdentifier> seen) {
            for (DependencyConstraint constraint : allConstraints) {
                String group = constraint.getGroup();
                String name = constraint.getName();
                ModuleIdentifier id = DefaultModuleIdentifier.newId(group, name);
                if (seen.add(id)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 7.5K bytes
    - Viewed (0)
Back to top