Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for typexpr (0.22 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. test/syntax/topexpr.go

    Emmanuel Odeke <******@****.***> 1460323946 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 502 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/link/internal/ld/typelink.go

    	"cmd/link/internal/loader"
    	"cmd/link/internal/sym"
    	"sort"
    )
    
    type byTypeStr []typelinkSortKey
    
    type typelinkSortKey struct {
    	TypeStr string
    	Type    loader.Sym
    }
    
    func (s byTypeStr) Less(i, j int) bool { return s[i].TypeStr < s[j].TypeStr }
    func (s byTypeStr) Len() int           { return len(s) }
    func (s byTypeStr) Swap(i, j int)      { s[i], s[j] = s[j], s[i] }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 03 21:13:25 UTC 2020
    - 1.9K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top