Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,131 for Constraint (0.14 sec)

  1. 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)
  2. 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)
  3. 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)
  4. platforms/software/publish/src/main/java/org/gradle/api/publish/internal/metadata/ModuleMetadataJsonWriter.java

            if (constraints.isEmpty()) {
                return;
            }
            writeArray("dependencyConstraints", () -> {
                for (ModuleMetadataSpec.DependencyConstraint constraint : constraints) {
                    writeObject(() -> {
                        write("group", constraint.coordinates.group);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 11.4K bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/jvm/language-jvm/src/integTest/groovy/org/gradle/integtests/resolve/consistency/JavaProjectResolutionConsistencyIntegrationTest.groovy

                            byConsistentResolution('testCompileClasspath')
                        }
                    }
                    constraint("org:foo:{strictly 1.0}", "org:foo:1.0")
                    constraint("org:baz:{strictly 1.0}", "org:baz:1.0")
                    constraint("org:transitive:{strictly 1.0}", "org:transitive:1.0")
                }
            }
    
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 12 18:44:49 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/result/AbstractDependencyResult.java

        private final ResolvedComponentResult from;
        private boolean constraint;
    
        public AbstractDependencyResult(ComponentSelector requested, ResolvedComponentResult from, boolean constraint) {
            assert requested != null;
            assert from != null;
    
            this.from = from;
            this.requested = requested;
            this.constraint = constraint;
        }
    
        @Override
        public ComponentSelector getRequested() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. subprojects/core-api/src/main/java/org/gradle/api/artifacts/DependenciesMetadata.java

        /**
         * Add a dependency or a dependency constraint using the map notation: <code>group: <i>group</i>, name: <i>name</i>, version: <i>version</i></code>.
         *
         * @param dependencyNotation the dependency
         */
        void add(Map<String, String> dependencyNotation);
    
        /**
         * Add a dependency or a dependency constraint using the string notation: <code><i>group</i>:<i>name</i>:<i>version</i></code>.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 22 14:14:42 UTC 2019
    - 2.3K bytes
    - Viewed (0)
Back to top