- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 721 for typeSet (0.19 sec)
-
src/go/types/typeset.go
// Implementation // hasTerms reports whether the type set has specific type terms. func (s *_TypeSet) hasTerms() bool { return !s.terms.isEmpty() && !s.terms.isAll() } // subsetOf reports whether s1 ⊆ s2. func (s1 *_TypeSet) subsetOf(s2 *_TypeSet) bool { return s1.terms.subsetOf(s2.terms) } // TODO(gri) TypeSet.is and TypeSet.underIs should probably also go into termlist.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 13.7K bytes - Viewed (0) -
src/go/parser/testdata/typeset.go2
// 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 typeset-only constraint elements. // TODO(gri) gofmt once/if gofmt supports this notation. package p type ( _[_ t] t _[_ ~t] t _[_ t|t] t _[_ ~t|t] t _[_ t|~t] t _[_ ~t|~t] t
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 02 12:56:53 UTC 2023 - 1.9K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testdata/typeset.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 typeset-only constraint elements. package p type ( _[_ t] t _[_ ~t] t _[_ t|t] t _[_ ~t|t] t _[_ t|~t] t _[_ ~t|~t] t _[_ t, _, _ t|t] t _[_ t, _, _ ~t|t] t
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Nov 01 17:49:03 UTC 2023 - 2.3K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeset.go
// Implementation // hasTerms reports whether the type set has specific type terms. func (s *_TypeSet) hasTerms() bool { return !s.terms.isEmpty() && !s.terms.isAll() } // subsetOf reports whether s1 ⊆ s2. func (s1 *_TypeSet) subsetOf(s2 *_TypeSet) bool { return s1.terms.subsetOf(s2.terms) } // TODO(gri) TypeSet.is and TypeSet.underIs should probably also go into termlist.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 13.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/interface.go
complete bool // indicates that all fields (except for tset) are set up tset *_TypeSet // type set described by this interface, computed lazily } // typeSet returns the type set for interface t. func (t *Interface) typeSet() *_TypeSet { return computeInterfaceTypeSet(t.check, nopos, t) } // emptyInterface represents the empty interface
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 6.2K bytes - Viewed (0) -
src/go/types/interface.go
complete bool // indicates that obj, methods, and embeddeds are set and type set can be computed tset *_TypeSet // type set described by this interface, computed lazily } // typeSet returns the type set for interface t. func (t *Interface) typeSet() *_TypeSet { return computeInterfaceTypeSet(t.check, nopos, t) } // emptyInterface represents the empty (completed) interface
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 8.1K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue51578.go
// license that can be found in the LICENSE file. package p var _ = (*interface /* ERROR "interface contains type constraints" */ {int})(nil) // abbreviated test case from issue type TypeSet interface{ int | string } func _() { f((*TypeSet /* ERROR "interface contains type constraints" */)(nil)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 429 bytes - Viewed (0) -
src/go/types/instantiate.go
if !Ti.typeSet().hasTerms() { return checkComparability() // nothing to do } // If V is itself an interface, each of its possible types must be in the set // of T types (i.e., the V type set must be a subset of the T type set). // Interfaces V with empty type sets were already excluded above. if Vi != nil { if !Vi.typeSet().subsetOf(Ti.typeSet()) { // TODO(gri) report which type is missing
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/instantiate.go
if !Ti.typeSet().hasTerms() { return checkComparability() // nothing to do } // If V is itself an interface, each of its possible types must be in the set // of T types (i.e., the V type set must be a subset of the T type set). // Interfaces V with empty type sets were already excluded above. if Vi != nil { if !Vi.typeSet().subsetOf(Ti.typeSet()) { // TODO(gri) report which type is missing
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 12.7K bytes - Viewed (0) -
docs/en/mkdocs.insiders.yml
plugins: social: cards_layout_dir: ../en/layouts cards_layout: custom cards_layout_options: logo: ../en/docs/img/icon-white.svg
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Apr 19 00:56:59 UTC 2024 - 159 bytes - Viewed (0)