Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for typexpr (0.29 sec)

  1. src/go/types/union.go

    				u = Typ[Invalid]
    			}
    		} else {
    			terms = append(terms, term)
    			u = &Union{terms}
    		}
    
    		if i > 0 {
    			check.recordTypeAndValue(blist[i-1], typexpr, u, nil)
    		}
    	}
    
    	if !isValid(u) {
    		return u
    	}
    
    	// Check validity of terms.
    	// Do this check later because it requires types to be set up.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/union.go

    				u = Typ[Invalid]
    			}
    		} else {
    			terms = append(terms, term)
    			u = &Union{terms}
    		}
    
    		if i > 0 {
    			check.recordTypeAndValue(blist[i-1], typexpr, u, nil)
    		}
    	}
    
    	if !isValid(u) {
    		return u
    	}
    
    	// Check validity of terms.
    	// Do this check later because it requires types to be set up.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. analysis/analysis-api/testData/components/compilerFacility/firPluginPrototypeMultiModule/composableInlineFunctionExpressionParameter.ir.txt

    MODULE_FRAGMENT
      FILE fqName:<root> fileName:main.kt
        FUN name:AuthorAndReadTime visibility:public modality:FINAL <> (b:p2.B) returnType:kotlin.Unit
          VALUE_PARAMETER name:b index:0 type:p2.B
          BLOCK_BODY
            CALL 'public final fun Row (a: p2.A, content: @[MyComposable] @[ExtensionFunctionType] kotlin.Function1<p3.RowScope, kotlin.Unit>): kotlin.Unit [inline] declared in p3' type=kotlin.Unit origin=null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Mar 14 20:08:24 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  4. src/reflect/type_test.go

    	)
    
    	testcases := []struct {
    		wantFrom any
    		got      reflect.Type
    	}{
    		{new(int), reflect.TypeFor[int]()},
    		{new(int64), reflect.TypeFor[int64]()},
    		{new(string), reflect.TypeFor[string]()},
    		{new(mystring), reflect.TypeFor[mystring]()},
    		{new(any), reflect.TypeFor[any]()},
    		{new(myiface), reflect.TypeFor[myiface]()},
    	}
    	for _, tc := range testcases {
    		want := reflect.ValueOf(tc.wantFrom).Elem().Type()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  5. src/cmd/vet/testdata/stdversion/stdversion.go

    package stdversion
    
    import "reflect"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 142 bytes
    - Viewed (0)
  6. tests/test_generic_parameterless_depends.py

    from typing import TypeVar
    
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    T = TypeVar("T")
    
    Dep = Annotated[T, Depends()]
    
    
    class A:
        pass
    
    
    class B:
        pass
    
    
    @app.get("/a")
    async def a(dep: Dep[A]):
        return {"cls": dep.__class__.__name__}
    
    
    @app.get("/b")
    async def b(dep: Dep[B]):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:52:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. fastapi/concurrency.py

    from typing import AsyncGenerator, ContextManager, TypeVar
    
    import anyio
    from anyio import CapacityLimiter
    from starlette.concurrency import iterate_in_threadpool as iterate_in_threadpool  # noqa
    from starlette.concurrency import run_in_threadpool as run_in_threadpool  # noqa
    from starlette.concurrency import (  # noqa
        run_until_first_complete as run_until_first_complete,
    )
    
    _T = TypeVar("_T")
    
    
    @asynccontextmanager
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon Dec 25 17:57:35 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  8. src/unique/clone_test.go

    	testCloneSeq[testStruct](t, cSeq(8))
    }
    
    func cSeq(stringOffsets ...uintptr) cloneSeq {
    	return cloneSeq{stringOffsets: stringOffsets}
    }
    
    func testCloneSeq[T any](t *testing.T, want cloneSeq) {
    	typName := reflect.TypeFor[T]().Name()
    	typ := abi.TypeOf(*new(T))
    	t.Run(typName, func(t *testing.T) {
    		got := makeCloneSeq(typ)
    		if !reflect.DeepEqual(got, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 1K bytes
    - Viewed (0)
  9. pkg/typemap/map.go

    }
    
    func Set[T any](t TypeMap, v T) {
    	interfaceType := reflect.TypeOf((*T)(nil)).Elem()
    	t.inner[interfaceType] = v
    }
    
    func Get[T any](t TypeMap) *T {
    	v, f := t.inner[reflect.TypeFor[T]()]
    	if f {
    		return ptr.Of(v.(T))
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  10. analysis/analysis-api/testData/components/compilerFacility/compilation/javaAnnotationWithVararg.ir.txt

            overridden:
              public open fun setContentView (p0: kotlin.Int): kotlin.Unit declared in p2.Parent
            $this: VALUE_PARAMETER name:<this> type:p2.Parent
            VALUE_PARAMETER name:p0 index:0 type:kotlin.Int
              annotations:
                Anno(value = ["UnknownNullness", "MissingNullability"])
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 19:18:28 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top