Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for iface (0.04 sec)

  1. src/internal/abi/iface.go

    Michael Anthony Knyszek <******@****.***> 1711143722 +0000
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 895 bytes
    - Viewed (0)
  2. src/runtime/gcinfo_test.go

    	}
    	{
    		var x []string
    		verifyGCInfo(t, "stack slice", &x, infoSlice)
    		runtime.KeepAlive(x)
    	}
    	{
    		var x any
    		verifyGCInfo(t, "stack eface", &x, infoEface)
    		runtime.KeepAlive(x)
    	}
    	{
    		var x Iface
    		verifyGCInfo(t, "stack iface", &x, infoIface)
    		runtime.KeepAlive(x)
    	}
    
    	for i := 0; i < 10; i++ {
    		verifyGCInfo(t, "heap Ptr", runtime.Escape(new(Ptr)), trimDead(infoPtr))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:58:08 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/DcerpcBinding.java

                if (lep.startsWith("\\pipe\\")) {
                    String iface = (String)INTERFACES.get(lep.substring(6));
                    if (iface != null) {
                        int c, p;
                        c = iface.indexOf(':');
                        p = iface.indexOf('.', c + 1);
                        uuid = new UUID(iface.substring(0, c));
                        major = Integer.parseInt(iface.substring(c + 1, p));
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 3.2K bytes
    - Viewed (0)
  4. test/typeparam/mdempsky/17.go

    	}
    	return
    }
    
    func RangeChanIface[V iface]() (v iface) {
    	for v = range chanOf(zero[V]()) {
    	}
    	return
    }
    
    func RangeMapAny[K comparable, V any]() (k, v any) {
    	for k, v = range map[K]V{zero[K](): zero[V]()} {
    	}
    	return
    }
    
    func RangeMapIface[K interface {
    	iface
    	comparable
    }, V iface]() (k, v iface) {
    	for k, v = range map[K]V{zero[K](): zero[V]()} {
    	}
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 10 21:35:49 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/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
    - 4.9K bytes
    - Viewed (0)
  6. test/typeparam/issue54302.dir/a.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package a
    
    func A() {
    	B[int](new(G[int]))
    }
    
    func B[T any](iface interface{ M(T) }) {
    	x, ok := iface.(*G[T])
    	if !ok || iface != x {
    		panic("FAIL")
    	}
    }
    
    type G[T any] struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 06 15:20:00 UTC 2022
    - 362 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/build_issue62156.txt

    -- go.mod --
    module m
    
    go 1.20
    -- main.go --
    package main
    
    import "m/sub"
    
    func main() { sub.F() }
    -- sub/sub.go --
    package sub
    
    type iface interface{ m() }
    
    func F() {
    	f := func(rt []iface) []iface {
    		return append([]iface{}, rt...)
    	}
    	f(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 23:18:16 UTC 2023
    - 410 bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. test/fixedbugs/issue42784.go

    // license that can be found in the LICENSE file.
    
    // Ensure that late expansion correctly set OpLoad argument type interface{}
    
    package p
    
    type iface interface {
    	m()
    }
    
    type it interface{}
    
    type makeIface func() iface
    
    func f() {
    	var im makeIface
    	e := im().(it)
    	g(e)
    }
    
    //go:noinline
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 24 03:06:15 UTC 2020
    - 426 bytes
    - Viewed (0)
Back to top