- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for Fooer (0.05 sec)
-
test/typeparam/typeswitch5.out
fooer 6 other other
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 09 18:41:45 UTC 2021 - 41 bytes - Viewed (0) -
test/fixedbugs/issue45258.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 28 21:41:07 UTC 2021 - 397 bytes - Viewed (0) -
test/typeparam/issue51522a.go
var t T if i != t { println("FAIL: if i != t") } } type myint int func (m myint) foo() { } type fooer interface { foo() } type comparableFoo interface { comparable foo() } func g[T comparableFoo](i fooer) { var t T if i != t { println("FAIL: if i != t") } } func main() { f[int](int(0)) g[myint](myint(0))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 10 18:50:50 UTC 2022 - 543 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue48974.go
// license that can be found in the LICENSE file. package p type Fooer interface { Foo() } type Fooable[F /* ERROR "instantiation cycle" */ Fooer] struct { ptr F } func (f *Fooable[F]) Adapter() *Fooable[*FooerImpl[F]] { return &Fooable[*FooerImpl[F]]{&FooerImpl[F]{}} } type FooerImpl[F Fooer] struct { }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 457 bytes - Viewed (0) -
test/typeparam/issue48049.go
package main func main() { Gooer2[byte]() } type Fooer[T any] interface { Foo(p T) } type fooer1[T any] struct{} func (fooer1[T]) Foo(T) {} type fooer2[T any] struct { r []Fooer[T] } //go:noinline func (mr fooer2[T]) Foo(p T) { mr.r[0] = fooer1[T]{} return } func Gooer2[T any]() Fooer[T] { return fooer2[T]{}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 493 bytes - Viewed (0) -
src/cmd/compile/internal/test/issue50182_test.go
} } // Test that escape analysis correctly tracks escaping inside of methods // called on generic types. type fooer interface { foo() } type P struct { p *int q int } var esc []*int func (p P) foo() { esc = append(esc, p.p) // foo escapes the pointer from inside of p } func f[T fooer](t T) { t.foo() } func TestGenericEscape(t *testing.T) { for i := 0; i < 4; i++ { var x int = 77 + i
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 13 23:35:37 UTC 2022 - 1.2K bytes - Viewed (0) -
test/typeparam/issue51522b.go
switch t { case i: // ok default: println("FAIL: switch t") } } type myint int func (m myint) foo() { } type fooer interface { foo() } type comparableFoo interface { comparable foo() } func g[T comparableFoo](i fooer) { var t T switch i { case t: // ok default: println("FAIL: switch i") } switch t { case i: // ok default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 10 19:30:33 UTC 2022 - 730 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue47887.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p type Fooer[t any] interface { foo(Barer[t]) } type Barer[t any] interface { bar(Bazer[t]) } type Bazer[t any] interface { Fooer[t] baz(t) } type Int int func (n Int) baz(int) {} func (n Int) foo(b Barer[int]) { b.bar(n) } type F[t any] interface { f(G[t]) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 02 02:58:32 UTC 2022 - 554 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) -
pkg/controller/cronjob/cronjob_controllerv2_test.go
cronJob: &batchv1.CronJob{ObjectMeta: metav1.ObjectMeta{Namespace: "foo-ns", Name: "fooer"}}, jobs: []runtime.Object{ &batchv1.Job{ObjectMeta: metav1.ObjectMeta{Name: "foo", Namespace: "foo-ns"}}, &batchv1.Job{ObjectMeta: metav1.ObjectMeta{Name: "foo1", Namespace: "foo-ns", OwnerReferences: []metav1.OwnerReference{{Name: "fooer", Controller: &trueRef}}}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat May 04 18:33:12 UTC 2024 - 70.8K bytes - Viewed (0)