Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MyInt32 (0.1 sec)

  1. test/typeparam/typeswitch3.go

    	}
    }
    func main() {
    	f[myfloat](myint(6))
    	f[myfloat](myfloat(7))
    	f[myfloat](myint32(8))
    	f[myint32](myint32(8))
    	f[myint32](myfloat(7))
    	f[myint](myint32(9))
    	f[I](myint(10))
    	f[J](myint(11))
    	f[J](myint32(12))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 837 bytes
    - Viewed (0)
  2. test/typeparam/typeswitch4.go

    type myint32 int32
    
    func (x myint32) foo() int { return int(x) }
    func (x myint32) bar()     {}
    
    func f[T I](i I) {
    	switch x := i.(type) {
    	case T, myint32:
    		println("T/myint32", x.foo())
    	default:
    		println("other", x.foo())
    	}
    }
    func main() {
    	f[myfloat](myint(6))
    	f[myfloat](myfloat(7))
    	f[myfloat](myint32(8))
    	f[myint32](myint32(9))
    	f[myint](myint32(10))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 813 bytes
    - Viewed (0)
  3. test/typeparam/typeswitch4.out

    other 6
    T/myint32 7
    T/myint32 8
    T/myint32 9
    T/myint32 10
    other 42
    T/myint32 10
    other 11
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 07 13:47:58 UTC 2022
    - 101 bytes
    - Viewed (0)
  4. src/runtime/testdata/testprog/panicprint.go

    package main
    
    type MyBool bool
    type MyComplex128 complex128
    type MyComplex64 complex64
    type MyFloat32 float32
    type MyFloat64 float64
    type MyInt int
    type MyInt8 int8
    type MyInt16 int16
    type MyInt32 int32
    type MyInt64 int64
    type MyString string
    type MyUint uint
    type MyUint8 uint8
    type MyUint16 uint16
    type MyUint32 uint32
    type MyUint64 uint64
    type MyUintptr uintptr
    
    func panicCustomComplex64() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/runtime/panic_test.go

    		{"panicCustomInt", `panic: main.MyInt(93)`},
    		{"panicCustomInt8", `panic: main.MyInt8(93)`},
    		{"panicCustomInt16", `panic: main.MyInt16(93)`},
    		{"panicCustomInt32", `panic: main.MyInt32(93)`},
    		{"panicCustomInt64", `panic: main.MyInt64(93)`},
    		{"panicCustomString", `panic: main.MyString("Panic` + "\n\t" + `line two")`},
    		{"panicCustomUint", `panic: main.MyUint(93)`},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top