- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 117 for tilde (0.05 sec)
-
src/cmd/compile/internal/types2/union.go
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} } func (t *Term) Tilde() bool { return t.tilde } func (t *Term) Type() Type { return t.typ } func (t *Term) String() string { return (*term)(t).String() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 15 16:16:58 UTC 2023 - 6.3K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue51229.go
func _(x **********int) { h(x) } // Examples with channel constraints and tilde. func ch1[P chan<- int]() (_ P) { return } // core(P) == chan<- int (single type, no tilde) func ch2[P ~chan int]() { return } // core(P) == ~chan<- int (tilde) func ch3[P chan E, E any](E) { return } // core(P) == chan<- E (single type, no tilde)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 4.8K bytes - Viewed (0) -
src/go/types/union.go
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} } func (t *Term) Tilde() bool { return t.tilde } func (t *Term) Type() Type { return t.typ } func (t *Term) String() string { return (*term)(t).String() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 6.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/typeterm.go
// T ⊆ ~t == true // T ⊆ T == true return !x.tilde || y.tilde } // disjoint reports whether x ∩ y == ∅. // x.typ and y.typ must not be nil. func (x *term) disjoint(y *term) bool { if debug && (x.typ == nil || y.typ == nil) { panic("invalid argument(s)") } ux := x.typ if y.tilde { ux = under(ux) } uy := y.typ if x.tilde { uy = under(uy) } return !Identical(ux, uy)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:34:30 UTC 2022 - 3.5K bytes - Viewed (0) -
src/go/types/typeterm.go
// T ⊆ ~t == true // T ⊆ T == true return !x.tilde || y.tilde } // disjoint reports whether x ∩ y == ∅. // x.typ and y.typ must not be nil. func (x *term) disjoint(y *term) bool { if debug && (x.typ == nil || y.typ == nil) { panic("invalid argument(s)") } ux := x.typ if y.tilde { ux = under(ux) } uy := y.typ if x.tilde { uy = under(uy) } return !Identical(ux, uy)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/typeparams/typeterm.go
// T ⊆ ~t == true // T ⊆ T == true return !x.tilde || y.tilde } // disjoint reports whether x ∩ y == ∅. // x.typ and y.typ must not be nil. func (x *term) disjoint(y *term) bool { if debug && (x.typ == nil || y.typ == nil) { panic("invalid argument(s)") } ux := x.typ if y.tilde { ux = under(ux) } uy := y.typ if x.tilde { uy = under(uy) } return !types.Identical(ux, uy)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 21 21:08:44 UTC 2023 - 3.6K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue51376.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 654 bytes - Viewed (0) -
src/go/types/infer.go
// term has a tilde. In all other cases coreTerm returns (nil, false). func coreTerm(tpar *TypeParam) (*term, bool) { n := 0 var single *term // valid if n == 1 var tilde bool tpar.is(func(t *term) bool { if t == nil { assert(n == 0) return false // no terms } n++ single = t if t.tilde { tilde = true } return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.5K bytes - Viewed (0) -
src/cmd/compile/internal/types2/infer.go
// term has a tilde. In all other cases coreTerm returns (nil, false). func coreTerm(tpar *TypeParam) (*term, bool) { n := 0 var single *term // valid if n == 1 var tilde bool tpar.is(func(t *term) bool { if t == nil { assert(n == 0) return false // no terms } n++ single = t if t.tilde { tilde = true } return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 13:54:20 UTC 2024 - 26.4K bytes - Viewed (0) -
src/go/token/token.go
INTERFACE MAP PACKAGE RANGE RETURN SELECT STRUCT SWITCH TYPE VAR keyword_end additional_beg // additional tokens, handled in an ad-hoc manner TILDE additional_end ) var tokens = [...]string{ ILLEGAL: "ILLEGAL", EOF: "EOF", COMMENT: "COMMENT", IDENT: "IDENT", INT: "INT", FLOAT: "FLOAT", IMAG: "IMAG",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 6.4K bytes - Viewed (0)