- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for immfloat (0.17 sec)
-
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) -
src/cmd/compile/internal/types2/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: Thu Jul 01 22:17:50 UTC 2021 - 1.5K bytes - Viewed (0) -
test/named.go
asChan(Chan(nil)) isChan(Chan(nil)) asFloat(f) isFloat(f) asFloat(-f) isFloat(-f) asFloat(+f) isFloat(+f) asFloat(f + 1) isFloat(f + 1) asFloat(1 + f) isFloat(1 + f) asFloat(f + f) isFloat(f + f) f++ f += 2 asFloat(f - 1) isFloat(f - 1) asFloat(1 - f) isFloat(1 - f) asFloat(f - f) isFloat(f - f) f-- f -= 2 asFloat(f * 2.5) isFloat(f * 2.5)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 4.6K 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/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/cmd/compile/internal/ssa/softfloat.go
"cmd/compile/internal/types" "math" ) func softfloat(f *Func) { if !f.Config.SoftFloat { return } newInt64 := false for _, b := range f.Blocks { for _, v := range b.Values { if v.Type.IsFloat() { f.unCache(v) switch v.Op { case OpPhi, OpLoad, OpArg: if v.Type.Size() == 4 { v.Type = f.Config.Types.UInt32 } else { v.Type = f.Config.Types.UInt64 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 03 16:14:24 UTC 2021 - 2K bytes - Viewed (0)