- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 183 for iface (0.47 sec)
-
src/cmd/go/testdata/script/build_issue62156.txt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 24 23:18:16 UTC 2023 - 410 bytes - Viewed (0) -
test/fixedbugs/issue46749.go
_ = i + false // ERROR "invalid operation.*mismatched types.*int and untyped bool" _ = iface + 1 // ERROR "invalid operation.*mismatched types.*interface *{} and int" _ = iface + 1.0 // ERROR "invalid operation.*mismatched types.*interface *{} and float64" _ = iface + false // ERROR "invalid operation.*mismatched types.*interface *{} and bool"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 17 02:30:22 UTC 2021 - 1.4K bytes - Viewed (0) -
src/go/types/typeparam.go
func (t *TypeParam) Underlying() Type { return t.iface() } func (t *TypeParam) String() string { return TypeString(t, nil) } // ---------------------------------------------------------------------------- // Implementation func (t *TypeParam) cleanup() { t.iface() t.check = nil } // iface returns the constraint interface of t. func (t *TypeParam) iface() *Interface { bound := t.bound
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 20:03:31 UTC 2024 - 5.1K bytes - Viewed (0) -
test/fixedbugs/issue42784.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 24 03:06:15 UTC 2020 - 426 bytes - Viewed (0) -
test/escape_field.go
var x X // BAD: &i should not escape x.p1 = &i var iface interface{} = x // ERROR "x does not escape" x1 := iface.(X) sink = x1.p2 } func field17() { i := 0 // ERROR "moved to heap: i$" var x X x.p1 = &i var iface interface{} = x // ERROR "x does not escape" x1 := iface.(X) sink = x1.p1 } func field18() { i := 0 // ERROR "moved to heap: i$"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 12 08:31:49 UTC 2020 - 2.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/runtime/serializer/cbor/internal/modes/roundtrip_test.go
} var iface interface{} if err := modePair.dec.Unmarshal(cborFromOriginal, &iface); err != nil { t.Fatalf("unexpected error from Unmarshal into %T: %v", &iface, err) } cborFromIface, err := modePair.enc.Marshal(iface) if err != nil { t.Fatalf("unexpected error from Marshal of iface: %v", err) } { // interface{} to interface{}
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 21:48:12 UTC 2024 - 7.1K bytes - Viewed (0) -
src/main/java/jcifs/dcerpc/DcerpcBinding.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 4.5K bytes - Viewed (0) -
src/internal/types/testdata/check/decls1.go
t21 int = a /* ERRORx `cannot use .* variable declaration` */ ) // Various more complex expressions var ( u1 = x /* ERROR "not an interface" */ .(int) u2 = iface.([]int) u3 = iface.(a /* ERROR "not a type" */ ) u4, ok = iface.(int) u5, ok2, ok3 = iface /* ERROR "assignment mismatch" */ .(int) ) // Constant expression initializations var ( v1 = 1 /* ERROR "mismatched types untyped int and untyped string" */ + "foo"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 05 18:13:11 UTC 2024 - 3.8K bytes - Viewed (0) -
test/fixedbugs/bug514.go
*myInt } var val = 1234 var valNotInHeap = notInHeap{i: val} func main() { i := val check(i) mi := myInt{f: &valNotInHeap} check(mi.Get()) ifv := iface(mi) check(ifv.Get()) ifv = iface(&mi) check(ifv.Get()) em := embed{&mi} check(em.Get()) ifv = em check(ifv.Get()) ifv = &em check(ifv.Get()) } func check(v int) { if v != val { panic(v) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 15:27:18 UTC 2022 - 782 bytes - Viewed (0) -
src/cmd/compile/internal/types2/subst.go
embeddeds, ecopied := subst.typeList(t.embeddeds) if mcopied || ecopied { iface := subst.check.newInterface() iface.embeddeds = embeddeds iface.embedPos = t.embedPos iface.implicit = t.implicit assert(t.complete) // otherwise we are copying incomplete data iface.complete = t.complete // If we've changed the interface type, we may need to replace its
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:04:07 UTC 2024 - 11K bytes - Viewed (0)