- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 71 for immfloat (0.16 sec)
-
src/cmd/internal/obj/arm/asm5.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 15 20:51:01 UTC 2023 - 79.4K bytes - Viewed (0) -
test/typeparam/typeswitch3.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 07 13:47:58 UTC 2022 - 837 bytes - Viewed (0) -
test/typeparam/typeswitch4.go
func (x myint) foo() int { return int(x) } type myfloat float64 func (x myfloat) foo() int { return int(x) } 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))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 07 13:47:58 UTC 2022 - 813 bytes - Viewed (0) -
test/typeparam/typeswitch7.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 581 bytes - Viewed (0) -
test/typeparam/typeswitch5.go
func (x myint) foo() int {return int(x)} type myfloat float64 func (x myfloat) foo() float64 {return float64(x) } func f[T any](i interface{}) { switch x := i.(type) { case interface { foo() T }: println("fooer", x.foo()) default: println("other") } } func main() { f[int](myint(6)) f[int](myfloat(7)) f[float64](myint(8)) f[float64](myfloat(9))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 559 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue49179.go
func f1[P int | string]() {} func f2[P ~int | string | float64]() {} func f3[P int](x P) {} type myInt int type myFloat float64 func _() { _ = f1[int] _ = f1[myInt /* ERROR "possibly missing ~ for int in int | string" */] _ = f2[myInt] _ = f2[myFloat /* ERROR "possibly missing ~ for float64 in ~int | string | float64" */] var x myInt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 964 bytes - Viewed (0) -
test/typeparam/dottype.go
return x.(T) } func f2[T any](x interface{}) (T, bool) { t, ok := x.(T) return t, ok } type I interface { foo() } type myint int func (myint) foo() { } type myfloat float64 func (myfloat) foo() { } func g[T I](x I) T { return x.(T) } func g2[T I](x I) (T, bool) { t, ok := x.(T) return t, ok } func h[T any](x interface{}) struct{ a, b T } {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.4K bytes - Viewed (0) -
src/fmt/print.go
p.badVerb(verb) } } // fmtFloat formats a float. The default precision for each verb // is specified as last argument in the call to fmt_float. func (p *pp) fmtFloat(v float64, size int, verb rune) { switch verb { case 'v': p.fmt.fmtFloat(v, size, 'g', -1) case 'b', 'g', 'G', 'x', 'X': p.fmt.fmtFloat(v, size, verb, -1) case 'f', 'e', 'E': p.fmt.fmtFloat(v, size, verb, 6) case 'F':
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0) -
src/go/types/basic.go
type BasicInfo int // Properties of basic types. const ( IsBoolean BasicInfo = 1 << iota IsInteger IsUnsigned IsFloat IsComplex IsString IsUntyped IsOrdered = IsInteger | IsFloat | IsString IsNumeric = IsInteger | IsFloat | IsComplex IsConstType = IsBoolean | IsNumeric | IsString ) // A Basic represents a basic type. type Basic struct { kind BasicKind
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Apr 03 18:48:38 UTC 2024 - 1.6K bytes - Viewed (0) -
src/go/internal/gcimporter/iimport.go
val = constant.MakeString(r.string()) case types.IsInteger: var x big.Int r.mpint(&x, b) val = constant.Make(&x) case types.IsFloat: val = r.mpfloat(b) case types.IsComplex: re := r.mpfloat(b) im := r.mpfloat(b) val = constant.BinaryOp(re, token.ADD, constant.MakeImag(im)) default: errorf("unexpected type %v", typ) // panics panic("unreachable") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0)