- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 987 for typeOf (0.17 sec)
-
platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/ConfigureLambdaHandler.kt
init { check(functionalInterface.java.isInterface) check(typeParameters.size <= 1) { "generic types with more than one type parameter are not supported" } } override fun getTypeConfiguredByLambda(type: KType): KType? = if (type.isSubtypeOf(starProjectedType)) type.arguments.firstOrNull()?.type ?: staticallyKnownConfiguredType else null
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Feb 02 10:53:44 UTC 2024 - 6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook/webhook_test.go
} obj, _, err := t.serializer.Decode(body, nil, t.list.DeepCopyObject()) if err != nil { return fmt.Errorf("decode request body: %v", err) } if reflect.TypeOf(obj).Elem() != reflect.TypeOf(t.list).Elem() { return fmt.Errorf("expected %T, got %T", t.list, obj) } t.onEvents(obj) return nil }() if err == nil { io.WriteString(w, "{}") return }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 08 06:37:26 UTC 2022 - 3.9K bytes - Viewed (0) -
test/typeparam/issue54456.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 18:13:48 UTC 2022 - 898 bytes - Viewed (0) -
test/fixedbugs/issue57184.go
for i := 0; i < length; i++ { x[i] = int64(i) * 27644437 % int64(length) } isLessStatic := func(i, j int) bool { return x[i] < x[j] } isLessReflect := reflect.MakeFunc(reflect.TypeOf(isLessStatic), func(args []reflect.Value) []reflect.Value { i := args[0].Int() j := args[1].Int() b := x[i] < x[j] return []reflect.Value{reflect.ValueOf(b)} }).Interface().(func(i, j int) bool)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Dec 09 21:38:33 UTC 2022 - 851 bytes - Viewed (0) -
src/main/webapp/js/admin/plugins/form-validator/sanitize.js
* @license MIT */
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Mon Jan 01 05:12:47 UTC 2018 - 2.7K bytes - Viewed (0) -
operator/cmd/mesh/test-util_test.go
node := actual.(map[string]any) got, f, err := tpath.GetPathContext(node, util.PathFromString(pv.path), false) if err != nil || !f { return false, err } if reflect.TypeOf(got.Node) != reflect.TypeOf(pv.value) { return false, fmt.Errorf("comparison types don't match: got %v(%T), want %v(%T)", got.Node, got.Node, pv.value, pv.value) } if !reflect.DeepEqual(got.Node, pv.value) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Oct 31 14:48:28 UTC 2023 - 15.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/healthz/healthz_test.go
startedByInformerType: map[reflect.Type]bool{ reflect.TypeOf(corev1.Pod{}): true, reflect.TypeOf(corev1.Service{}): false, reflect.TypeOf(corev1.Node{}): true, }, }) err := healthChecker.Check(nil) if err == nil { t.Errorf("expected error, got: %v", err) } }) } type cacheSyncWaiterStub struct { startedByInformerType map[reflect.Type]bool
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 20:43:16 UTC 2023 - 11.4K bytes - Viewed (0) -
src/go/types/sizeof_test.go
package types import ( "reflect" "testing" ) // Signal size changes of important structures. func TestSizeof(t *testing.T) { const _64bit = ^uint(0)>>32 != 0 var tests = []struct { val any // type as a value _32bit uintptr // size on 32bit platforms _64bit uintptr // size on 64bit platforms }{ // Types {Basic{}, 16, 32}, {Array{}, 16, 24},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 06 13:09:19 UTC 2023 - 1.3K bytes - Viewed (0) -
test/fixedbugs/bug177.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import "reflect" type S1 struct{ i int } type S2 struct{ S1 } func main() { typ := reflect.TypeOf(S2{}) f := typ.Field(0) if f.Name != "S1" || f.Anonymous != true { println("BUG: ", f.Name, f.Anonymous) return } f, ok := typ.FieldByName("S1") if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:49:30 UTC 2012 - 558 bytes - Viewed (0) -
test/reflectmethod1.go
// The linker can prune methods that are not directly called or // assigned to interfaces, but only if reflect.Type.Method is // never used. Test it here. package main import "reflect" var called = false type M int func (m M) UniqueMethodName() { called = true } var v M func main() { reflect.TypeOf(v).Method(0).Func.Interface().(func(M))(v) if !called { panic("UniqueMethodName not called") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 21:19:20 UTC 2016 - 578 bytes - Viewed (0)