Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 120 for ifaceeq (0.3 sec)

  1. 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)
  2. 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)
  3. test/fixedbugs/issue42727.go

    // license that can be found in the LICENSE file.
    
    // Ensure that late expansion correctly handles an OpLoad with type interface{}
    
    package p
    
    type iface interface {
    	m()
    }
    
    type it interface{}
    
    type makeIface func() iface
    
    func f() {
    	var im makeIface
    	e := im().(it)
    	_ = &e
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 20 17:31:50 UTC 2020
    - 400 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. src/cmd/cgo/internal/testshared/shared_test.go

    	globalSkip(t)
    	goCmd(t, "install", "-buildmode=shared", "-linkshared", "./iface_a")
    	// Note: iface_i gets installed implicitly as a dependency of iface_a.
    	goCmd(t, "install", "-buildmode=shared", "-linkshared", "./iface_b")
    	goCmd(t, "install", "-linkshared", "./iface")
    	run(t, "running type/itab uniqueness tester", "../../bin/iface")
    }
    
    // Access a global variable from a library.
    func TestGlobal(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
  8. src/net/net_windows_test.go

    	}
    	slices.Sort(have)
    
    	ifaces := make(map[string]bool)
    	err = netshInterfaceIPShowInterface("ipv6", ifaces)
    	if err != nil {
    		t.Fatal(err)
    	}
    	err = netshInterfaceIPShowInterface("ipv4", ifaces)
    	if err != nil {
    		t.Fatal(err)
    	}
    	want := make([]string, 0)
    	for name, isup := range ifaces {
    		want = append(want, toString(name, isup))
    	}
    	slices.Sort(want)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 16.3K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top