Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 155 for badtype (0.18 sec)

  1. src/cmd/fix/cftype.go

    		return strings.HasPrefix(s, "C.") && strings.HasSuffix(s, "Ref") && s != "C.CFAllocatorRef"
    	})
    }
    
    // typefix replaces nil with 0 for all nils whose type, when passed to badType, returns true.
    func typefix(f *ast.File, badType func(string) bool) bool {
    	if !imports(f, "C") {
    		return false
    	}
    	typeof, _ := typecheck(&TypeConfig{}, f)
    	changed := false
    
    	// step 1: Find all the nils with the offending types.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:25:49 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/builtin.go

    			case " ":
    				on = typecheck.LookupRuntime("printsp")
    			case "\n":
    				on = typecheck.LookupRuntime("printnl")
    			default:
    				on = typecheck.LookupRuntime("printstring")
    			}
    		default:
    			badtype(ir.OPRINT, n.Type(), nil)
    			continue
    		}
    
    		r := ir.NewCallExpr(base.Pos, ir.OCALL, on, nil)
    		if params := on.Type().Params(); len(params) > 0 {
    			t := params[0].Type
    			n = typecheck.Conv(n, t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 22:35:22 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/schemaBuilder/DataSchemaBuilder.kt

            private
            val propertyOriginalTypes = mutableMapOf<KClass<*>, MutableMap<String, KType>>()
    
            private
            val claimedFunctions = mutableMapOf<KClass<*>, MutableSet<KFunction<*>>>()
    
            fun addType(kClass: KClass<*>) {
                properties.getOrPut(kClass) { mutableMapOf() }
                propertyOriginalTypes.getOrPut(kClass) { mutableMapOf() }
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 10:08:02 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. test/typeparam/issue47708.go

    // 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
    // func (l Baz[T]) Foo(v BarType[T]) string {
    // 	return v.Bar(l)
    // }
    // type Bob[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)
  5. test/typeparam/issue47710.go

    // 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)
  6. staging/src/k8s.io/apiserver/pkg/cel/openapi/compiling_test.go

    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")
    
    	env, err := environment.MustBaseEnvSet(environment.DefaultCompatibilityVersion(), true).Extend(
    		environment.VersionedOptions{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaObjectSerializationCodec.kt

                val beanType = value.javaClass
                writeClass(beanType)
                val record = recordWritingOf(beanType, value)
                record.run { playback() }
            }
        }
    
        private
        fun recordWritingOf(beanType: Class<Externalizable>, value: Externalizable): RecordingObjectOutputStream =
            RecordingObjectOutputStream(beanType, value).also { recordingObjectOutputStream ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go

    			addType(T.Elem())
    		case *types.Slice:
    			addType(T.Elem())
    		case *types.Array:
    			addType(T.Elem())
    		case *types.Chan:
    			addType(T.Elem())
    		case *types.Map:
    			addType(T.Key())
    			addType(T.Elem())
    		case *types.Signature:
    			addType(T.Params())
    			addType(T.Results())
    			if tparams := T.TypeParams(); tparams != nil {
    				for i := 0; i < tparams.Len(); i++ {
    					addType(tparams.At(i))
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. platforms/core-configuration/bean-serialization-services/src/main/kotlin/org/gradle/internal/serialize/beans/services/BeanConstructors.kt

        fun constructorForSerialization(beanType: Class<*>): Constructor<out Any> {
            return cache.get(beanType) { -> createConstructor(beanType) }
        }
    
        private
        fun createConstructor(beanType: Class<*>): Constructor<out Any> {
            // Initialize the super types of the bean type, as this does not seem to happen via the generated constructors
            maybeInit(beanType)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  10. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/codecs/BeanCodec.kt

            encodePreservingIdentityOf(value) {
                val beanType = GeneratedSubclasses.unpackType(value)
                withBeanTrace(beanType) {
                    writeBeanOf(beanType, value)
                }
            }
        }
    
        override suspend fun ReadContext.decode(): Any =
            decodePreservingIdentity { id ->
                val beanType = readClass()
                val generated = readBoolean()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 18:56:44 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top