Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 1,131 for Constraint (0.27 sec)

  1. src/internal/types/testdata/examples/constraints.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file shows some examples of generic constraint interfaces.
    
    package p
    
    type MyInt int
    
    type (
    	// Arbitrary types may be embedded like interfaces.
    	_ interface{int}
    	_ interface{~int}
    
    	// Types may be combined into a union.
    	union interface{int|~string}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/accessors/AccessorFragments.kt

                        /**
                         * Adds a dependency constraint to the '$original' configuration.
                         *
                         * @param constraintNotation the dependency constraint notation
                         * @param block the block to use to configure the dependency constraint
                         *
                         * @return the added dependency constraint
                         *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 13:09:46 UTC 2024
    - 40.2K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/issues1.go

    	f()
    	go f()
    }
    
    // We must compare against the (possibly underlying) types of term list
    // elements when checking if a constraint is satisfied by a type.
    // The underlying type of each term must be computed after the
    // interface has been instantiated as its constraint may contain
    // a type parameter that was substituted with a defined type.
    // Test case from an (originally) failing example.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/testdata/interface.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains test cases for interfaces containing
    // constraint elements.
    
    package p
    
    type _ interface {
    	m()
    	E
    }
    
    type _ interface {
    	m()
    	~int
    	int | string
    	int | ~string
    	~int | ~string
    }
    
    type _ interface {
    	m()
    	~int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 18:02:18 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/api/internal/project/ProjectRegistry.java

        int size();
    
        Set<T> getAllProjects();
    
        Set<T> getAllProjects(String path);
    
        Set<T> getSubProjects(String path);
    
        Set<T> findAll(Spec<? super T> constraint);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Dec 11 09:02:17 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  6. ci/devinfra/docker_windows/Dockerfile

        sdkmanager 'extras;android;m2repository'; \
        sdkmanager 'extras;intel;Hardware_Accelerated_Execution_Manager'; \
        sdkmanager 'extras;m2repository;com;android;support;constraint;constraint-layout;1.0.0'; \
        sdkmanager 'extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2'; \
        sdkmanager 'patcher;v4'; \
        sdkmanager 'ndk;25.1.8937393'; \
        sdkmanager 'build-tools;27.0.3';
    
    # Install Scoop and packages
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 18 17:24:20 UTC 2023
    - 13.6K bytes
    - Viewed (0)
  7. src/go/types/api_predicates.go

    //
    // The behavior of AssertableTo is unspecified in three cases:
    //   - if T is Typ[Invalid]
    //   - if V is a generalized interface; i.e., an interface that may only be used
    //     as a type constraint in Go code
    //   - if T is an uninstantiated generic type
    func AssertableTo(V *Interface, T Type) bool {
    	// Checker.newAssertableTo suppresses errors for invalid types, so we need special
    	// handling here.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 16:36:08 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/internal/fuzz/sys_unimplemented.go

    // Copyright 2020 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // If you update this constraint, also update internal/platform.FuzzSupported.
    //
    //go:build !darwin && !freebsd && !linux && !windows
    
    package fuzz
    
    import (
    	"os"
    	"os/exec"
    )
    
    type sharedMemSys struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 04 18:08:15 UTC 2022
    - 934 bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/api/ConfigurationMutationIntegrationTest.groovy

                }
            """
    
            expect:
            succeeds("resolve")
        }
    
        def "modifying dependency and constraint attributes are deprecated after resolution"() {
            given:
            ["1.0", "2.0"].each { version ->
                mavenRepo.module("org", "foo", version).publish()
                mavenRepo.module("org", "bar", version).publish()
                mavenRepo.module("org", "baz", version).publish()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Mar 07 19:31:56 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. src/go/build/constraint/vers_test.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package constraint
    
    import (
    	"fmt"
    	"testing"
    )
    
    var tests = []struct {
    	in  string
    	out int
    }{
    	{"//go:build linux && go1.60", 60},
    	{"//go:build ignore && go1.60", 60},
    	{"//go:build ignore || go1.60", -1},
    	{"//go:build go1.50 || (ignore && go1.60)", 50},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 19:39:51 UTC 2023
    - 1K bytes
    - Viewed (0)
Back to top