- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 139 for iface (1 sec)
-
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) -
src/go/internal/srcimporter/srcimporter_test.go
if level > 10 { t.Errorf("%s: embeds itself", named) return } iface, _ := named.Underlying().(*types.Interface) if iface == nil { return // not an interface } // check explicitly declared methods for i := 0; i < iface.NumExplicitMethods(); i++ { m := iface.ExplicitMethod(i) recv := m.Type().(*types.Signature).Recv() if recv == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 6.5K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi.go
if err != nil { return nil, err } initIface := iface if initiatorName != "" { iface = bkportal[0] + ":" + spec.Name() } return &iscsiDisk{ podUID: podUID, VolName: spec.Name(), Portals: bkportal, Iqn: iqn, Lun: lun, InitIface: initIface, Iface: iface, chapDiscovery: chapDiscovery, chapSession: chapSession,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 14 06:17:25 UTC 2024 - 23.4K bytes - Viewed (0) -
pilot/pkg/util/network/ip.go
func GetPrivateIPsIfAvailable() ([]string, bool) { ok := true ipAddresses := make([]string, 0) ifaces, _ := net.Interfaces() for _, iface := range ifaces { if iface.Flags&net.FlagUp == 0 { continue // interface down } if iface.Flags&net.FlagLoopback != 0 { continue // loopback interface } addrs, _ := iface.Addrs() for _, addr := range addrs { var ip net.IP switch v := addr.(type) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Dec 21 21:27:21 UTC 2023 - 6.3K bytes - Viewed (0) -
src/go/types/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 - 11.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/TypesTest.groovy
then: 0 * _ } class Base { @Incubating Object doSomething() { null } } interface Iface {} class Child extends Base implements Serializable, Iface { @Nullable Object doSomething() { null } } def "walking type hierarchy happens breadth-first"() { def visitor = Mock(Types.TypeVisitor)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 06 15:03:49 UTC 2023 - 2.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/Types.java
if (superclass != null) { queue.add(superclass); } for (Class<?> iface : type.getInterfaces()) { if (seenInterfaces.add(iface)) { queue.add(Cast.<Class<? super T>>uncheckedCast(iface)); } } } } @FunctionalInterface public interface TypeVisitor<T> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/subr.go
return m } // Implements reports whether t implements the interface iface. t can be // an interface, a type parameter, or a concrete type. func Implements(t, iface *types.Type) bool { var missing, have *types.Field var ptr int return implements(t, iface, &missing, &have, &ptr) } // ImplementsExplain reports whether t implements the interface iface. t can be
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 19:45:58 UTC 2023 - 20.2K bytes - Viewed (0)