Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 662 for union2 (0.14 sec)

  1. platforms/core-configuration/base-services-groovy/src/test/groovy/org/gradle/api/specs/SpecsTest.groovy

            expect:
            def union1 = Specs.union(spec1, spec2)
            union1 instanceof OrSpec
            union1.specs == [spec1, spec2]
    
            def union2 = Specs.union([spec1, spec2])
            union2 instanceof OrSpec
            union2.specs == [spec1, spec2]
        }
    
        def "union of none is none"() {
            expect:
            Specs.union(Specs.satisfyNone()) == Specs.satisfyNone()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/testerrors/ptr_test.go

    	},
    	{
    		// Check a pointer to a union if the union has any
    		// pointer fields.
    		name:    "union1",
    		c:       `typedef union { char **p; unsigned long i; } u29; void f29(u29 *pu) {}`,
    		imports: []string{"unsafe"},
    		body:    `var b C.char; p := &b; C.f29((*C.u29)(unsafe.Pointer(&p)))`,
    		fail:    true,
    	},
    	{
    		// Don't check a pointer to a union if the union does
    		// not have any pointer fields.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/union.go

    }
    
    func (u *Union) Len() int         { return len(u.terms) }
    func (u *Union) Term(i int) *Term { return u.terms[i] }
    
    func (u *Union) Underlying() Type { return u }
    func (u *Union) String() string   { return TypeString(u, nil) }
    
    // A Term represents a term in a Union.
    type Term term
    
    // NewTerm returns a new union term.
    func NewTerm(tilde bool, typ Type) *Term { return &Term{tilde, typ} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  4. src/go/types/union.go

    }
    
    func (u *Union) Len() int         { return len(u.terms) }
    func (u *Union) Term(i int) *Term { return u.terms[i] }
    
    func (u *Union) Underlying() Type { return u }
    func (u *Union) String() string   { return TypeString(u, nil) }
    
    // A Term represents a term in a [Union].
    type Term term
    
    // NewTerm returns a new union term.
    func NewTerm(tilde bool, typ Type) *Term { return &Term{tilde, typ} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/unions.go

    	t90|t91|t92|t93|t94|t95|t96|t97|t98|t99|
            int // ERROR "cannot handle more than 100 union terms"
    }
    
    type u102 interface {
            int /* ERROR "cannot handle more than 100 union terms" */ |string|u100a
    }
    
    type u200 interface {
            u100a /* ERROR "cannot handle more than 100 union terms" */ |u100b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/Unions.java

    import java.util.Set;
    import java.util.stream.Collectors;
    
    class Unions {
        private final ExcludeFactory factory;
    
        public Unions(ExcludeFactory factory) {
            this.factory = factory;
        }
    
        /**
         * Tries to compute an union of 2 specs.
         * The result MUST be a simplification, otherwise this method returns null.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  7. src/internal/types/testdata/examples/constraints.go

    	_ interface{int|any}
    	_ interface{int|~string|union}
    	_ interface{int|~string|interface{int}}
    	_ interface{union|int}   // interfaces (here: union) are ignored when checking for overlap
    	_ interface{union|union} // ditto
    
    	// For now we do not permit interfaces with methods in unions.
    	_ interface{~ /* ERROR "invalid use of ~" */ any}
    	_ interface{int|interface /* ERRORx `cannot use .* in union` */ { m() }}
    )
    
    type (
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/NormalizingExcludeFactory.java

    public class NormalizingExcludeFactory extends DelegatingExcludeFactory {
        private final Intersections intersections;
        private final Unions unions;
    
        public NormalizingExcludeFactory(ExcludeFactory delegate) {
            super(delegate);
            this.intersections = new Intersections(this);
            this.unions = new Unions(this);
        }
    
        @Override
        public ExcludeSpec anyOf(ExcludeSpec one, ExcludeSpec two) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  9. docs/em/docs/tutorial/extra-models.md

        ```
    
    ## `Union` ⚖️ `anyOf`
    
    👆 💪 📣 📨 `Union` 2️⃣ 🆎, 👈 ⛓, 👈 📨 🔜 🙆 2️⃣.
    
    ⚫️ 🔜 🔬 🗄 ⏮️ `anyOf`.
    
    👈, ⚙️ 🐩 🐍 🆎 🔑 <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    !!! note
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/tools/internal/typeparams/normalize.go

    				terms = tset2.terms
    			case *types.TypeParam, *types.Union:
    				// A stand-alone type parameter or union is not permitted as union
    				// term.
    				return nil, fmt.Errorf("invalid union term %T", t)
    			default:
    				if t.Type() == types.Typ[types.Invalid] {
    					continue
    				}
    				terms = termlist{{t.Tilde(), t.Type()}}
    			}
    			tset.terms = tset.terms.union(terms)
    			if len(tset.terms) > maxTermCount {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
Back to top