Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for assertptr (0.16 sec)

  1. test/interface/assertinline.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    func assertptr(x interface{}) *int {
    	return x.(*int) // ERROR "type assertion inlined"
    }
    
    func assertptr2(x interface{}) (*int, bool) {
    	z, ok := x.(*int) // ERROR "type assertion inlined"
    	return z, ok
    }
    
    func assertfunc(x interface{}) func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 02 21:33:03 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  2. test/typeparam/issue58513.go

    	return assert[To]
    }
    
    type asserter[_ any] struct{}
    
    func (asserter[_]) assert() {
    	panic(0)
    }
    
    func AssertMV[To any]() func() {
    	return asserter[To]{}.assert
    }
    
    func AssertME[To any]() func(asserter[To]) {
    	return asserter[To].assert
    }
    
    var me = AssertME[string]()
    
    var tests = []func(){
    	Assert[int](),
    	AssertMV[int](),
    	func() { me(asserter[string]{}) },
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 27 23:07:49 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go

    	Id       uint32
    	Linkname [68]int8
    }
    
    type TIPCSIOCNodeIDReq struct {
    	Peer uint32
    	Id   [16]int8
    }
    
    type PPSKInfo struct {
    	Assert_sequence uint32
    	Clear_sequence  uint32
    	Assert_tu       PPSKTime
    	Clear_tu        PPSKTime
    	Current_mode    int32
    	_               [4]byte
    }
    
    const (
    	PPS_GETPARAMS = 0x800870a1
    	PPS_SETPARAMS = 0x400870a2
    	PPS_GETCAP    = 0x800870a3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go

    	Id       uint32
    	Linkname [68]int8
    }
    
    type TIPCSIOCNodeIDReq struct {
    	Peer uint32
    	Id   [16]int8
    }
    
    type PPSKInfo struct {
    	Assert_sequence uint32
    	Clear_sequence  uint32
    	Assert_tu       PPSKTime
    	Clear_tu        PPSKTime
    	Current_mode    int32
    	_               [4]byte
    }
    
    const (
    	PPS_GETPARAMS = 0x400470a1
    	PPS_SETPARAMS = 0x800470a2
    	PPS_GETCAP    = 0x400470a3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go

    	Id       uint32
    	Linkname [68]int8
    }
    
    type TIPCSIOCNodeIDReq struct {
    	Peer uint32
    	Id   [16]int8
    }
    
    type PPSKInfo struct {
    	Assert_sequence uint32
    	Clear_sequence  uint32
    	Assert_tu       PPSKTime
    	Clear_tu        PPSKTime
    	Current_mode    int32
    	_               [4]byte
    }
    
    const (
    	PPS_GETPARAMS = 0x400870a1
    	PPS_SETPARAMS = 0x800870a2
    	PPS_GETCAP    = 0x400870a3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go

    	Id       uint32
    	Linkname [68]int8
    }
    
    type TIPCSIOCNodeIDReq struct {
    	Peer uint32
    	Id   [16]int8
    }
    
    type PPSKInfo struct {
    	Assert_sequence uint32
    	Clear_sequence  uint32
    	Assert_tu       PPSKTime
    	Clear_tu        PPSKTime
    	Current_mode    int32
    	_               [4]byte
    }
    
    const (
    	PPS_GETPARAMS = 0x400470a1
    	PPS_SETPARAMS = 0x800470a2
    	PPS_GETCAP    = 0x400470a3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go

    	Id       uint32
    	Linkname [68]uint8
    }
    
    type TIPCSIOCNodeIDReq struct {
    	Peer uint32
    	Id   [16]uint8
    }
    
    type PPSKInfo struct {
    	Assert_sequence uint32
    	Clear_sequence  uint32
    	Assert_tu       PPSKTime
    	Clear_tu        PPSKTime
    	Current_mode    int32
    	_               [4]byte
    }
    
    const (
    	PPS_GETPARAMS = 0x400870a1
    	PPS_SETPARAMS = 0x800870a2
    	PPS_GETCAP    = 0x400870a3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_386.go

    	Id       uint32
    	Linkname [68]int8
    }
    
    type TIPCSIOCNodeIDReq struct {
    	Peer uint32
    	Id   [16]int8
    }
    
    type PPSKInfo struct {
    	Assert_sequence uint32
    	Clear_sequence  uint32
    	Assert_tu       PPSKTime
    	Clear_tu        PPSKTime
    	Current_mode    int32
    }
    
    const (
    	PPS_GETPARAMS = 0x800470a1
    	PPS_SETPARAMS = 0x400470a2
    	PPS_GETCAP    = 0x800470a3
    	PPS_FETCH     = 0xc00470a4
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go

    	Id       uint32
    	Linkname [68]int8
    }
    
    type TIPCSIOCNodeIDReq struct {
    	Peer uint32
    	Id   [16]int8
    }
    
    type PPSKInfo struct {
    	Assert_sequence uint32
    	Clear_sequence  uint32
    	Assert_tu       PPSKTime
    	Clear_tu        PPSKTime
    	Current_mode    int32
    	_               [4]byte
    }
    
    const (
    	PPS_GETPARAMS = 0x400870a1
    	PPS_SETPARAMS = 0x800870a2
    	PPS_GETCAP    = 0x400870a3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  10. src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go

    	Id       uint32
    	Linkname [68]int8
    }
    
    type TIPCSIOCNodeIDReq struct {
    	Peer uint32
    	Id   [16]int8
    }
    
    type PPSKInfo struct {
    	Assert_sequence uint32
    	Clear_sequence  uint32
    	Assert_tu       PPSKTime
    	Clear_tu        PPSKTime
    	Current_mode    int32
    	_               [4]byte
    }
    
    const (
    	PPS_GETPARAMS = 0x800870a1
    	PPS_SETPARAMS = 0x400870a2
    	PPS_GETCAP    = 0x800870a3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 16:12:58 UTC 2024
    - 12.6K bytes
    - Viewed (0)
Back to top