Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FooType (0.17 sec)

  1. test/typeparam/issue47710.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    type FooType[t any] interface {
    	Foo(BarType[t])
    }
    type BarType[t any] interface {
    	Int(IntType[t]) FooType[int]
    }
    
    type IntType[t any] int
    
    func (n IntType[t]) Foo(BarType[t]) {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 398 bytes
    - Viewed (0)
  2. test/typeparam/issue47708.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    type FooType[T any] interface {
    	Foo(BarType[T]) string
    }
    type BarType[T any] interface {
    	Bar(FooType[T]) string
    }
    
    // For now, a lone type parameter is not permitted as RHS in a type declaration (issue #45639).
    // type Baz[T any] T
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 934 bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go

    // bar is an object with a string field "bar", an integer field "common", and an integer field "confusion"
    func buildTestEnv() (*cel.Env, error) {
    	fooType := common.SchemaDeclType(simpleMapSchema("foo", spec.StringProperty()), true).MaybeAssignTypeName("fooType")
    	barType := common.SchemaDeclType(simpleMapSchema("bar", spec.Int64Property()), true).MaybeAssignTypeName("barType")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top