Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for typexpr (1.12 sec)

  1. src/internal/types/testdata/fixedbugs/issue57522.go

    type V1 = S1[any]
    
    type S2[T any] struct{}
    type V2 = S2[any]
    func (fs *S2[T]) M(x V2.M /* ERROR "V2.M is not a type" */ ) {}
    
    // The following still panics, as the selector is reached from check.expr
    // rather than check.typexpr. TODO(rfindley): fix this.
    // type X[T any] int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 11 22:29:34 UTC 2023
    - 728 bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/encoding/gob/type_test.go

    	newtyp := getTypeUnlocked("int", reflect.TypeFor[int]())
    	if newtyp != tInt.gobType() {
    		t.Errorf("reregistration of %s got new type", newtyp.string())
    	}
    	newtyp = getTypeUnlocked("uint", reflect.TypeFor[uint]())
    	if newtyp != tUint.gobType() {
    		t.Errorf("reregistration of %s got new type", newtyp.string())
    	}
    	newtyp = getTypeUnlocked("string", reflect.TypeFor[string]())
    	if newtyp != tString.gobType() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  10. security/pkg/pki/util/san.go

    // an identity into a SAN extension.
    type IdentityType int
    
    const (
    	// TypeDNS represents a DNS name.
    	TypeDNS IdentityType = iota
    	// TypeIP represents an IP address.
    	TypeIP
    	// TypeURI represents a universal resource identifier.
    	TypeURI
    )
    
    var (
    	// Mapping from the type of an identity to the OID tag value for the X.509
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Oct 14 06:50:22 UTC 2022
    - 6K bytes
    - Viewed (0)
Back to top