- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 183 for iface (3.88 sec)
-
test/fixedbugs/issue5056.go
// issue 5056: escape analysis not applied to wrapper functions package main type Foo int16 func (f Foo) Esc() *int{ x := int(f) return &x } type iface interface { Esc() *int } var bar, foobar *int func main() { var quux iface var x Foo quux = x bar = quux.Esc() foobar = quux.Esc() if bar == foobar { panic("bar == foobar") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 517 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) -
test/fixedbugs/issue42727.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 20 17:31:50 UTC 2020 - 400 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) -
cmd/kubeadm/app/cmd/version_test.go
goto error } if buf.String() == "" { err = errors.New("empty output") goto error } if tc.shouldBeValidYAML { err = yaml.Unmarshal(buf.Bytes(), &iface) } else if tc.shouldBeValidJSON { err = json.Unmarshal(buf.Bytes(), &iface) } error: if (err != nil) != tc.expectedError { t.Errorf("Test case %q: RunVersion expected error: %v, saw: %v; %v", tc.name, tc.expectedError, err != nil, err) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 17 14:40:46 UTC 2021 - 2.3K 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)