- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of about 10,000 for a$ (0.08 sec)
-
test/typeparam/issue51423.dir/a.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a type Comparator[T any] func(v1, v2 T) int func CompareInt[T ~int](a, b T) int { if a < b { return -1 } if a == b { return 0 } return 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 11 00:42:08 UTC 2022 - 318 bytes - Viewed (0) -
src/cmd/cgo/internal/test/issue27340/a.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Failed to resolve typedefs consistently. // No runtime test; just make sure it compiles. // In separate directory to isolate #pragma GCC diagnostic. package issue27340 // We use the #pragma to avoid a compiler warning about incompatible // pointer types, because we generate code passing a struct ptr rather
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 1.2K bytes - Viewed (0) -
src/cmd/cgo/internal/testshared/testdata/issue25065/a.go
// Copyright 2018 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package issue25065 has a type with a method that is // 1. referenced in a method expression // 2. not called // 3. not converted to an interface // 4. is a value method but the reference is to the pointer method // // These cases avoid the call to makefuncsym from typecheckfunc, but we
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 11:59:56 UTC 2023 - 619 bytes - Viewed (0) -
test/typeparam/issue47892.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Aug 29 14:10:21 UTC 2021 - 281 bytes - Viewed (0) -
test/typeparam/listimp.dir/a.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a type Ordered interface { ~int | ~int8 | ~int16 | ~int32 | ~int64 | ~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr | ~float32 | ~float64 | ~string } // List is a linked list of ordered values of type T. type List[T Ordered] struct { Next *List[T]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Dec 03 17:08:51 UTC 2022 - 1.1K bytes - Viewed (0) -
test/typeparam/issue49246.dir/a.go
// Copyright 2021 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a type R[T any] struct{ v T } func (r R[T]) Self() R[T] { return R[T]{} } type Fn[T any] func() R[T] func X() (r R[int]) { return r.Self() } func Y[T any](a Fn[T]) Fn[int] { return func() (r R[int]) { // No crash: return R[int]{} return r.Self() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 02 03:09:01 UTC 2021 - 429 bytes - Viewed (0) -
test/typeparam/issue51250a.dir/a.go
// Copyright 2022 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package a type G[T any] struct { x T
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 03 00:23:02 UTC 2022 - 201 bytes - Viewed (0) -
test/typeparam/structinit.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 16 00:34:10 UTC 2021 - 281 bytes - Viewed (0) -
src/cmd/cgo/internal/test/gcc68255/a.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that it's OK to have C code that does nothing other than // initialize a global variable. This used to fail with gccgo. package gcc68255 /* #include "c.h" */ import "C" func F() bool { return C.v != nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 12 12:00:02 UTC 2023 - 378 bytes - Viewed (0) -
test/fixedbugs/issue56280.dir/a.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 08 21:26:09 UTC 2022 - 382 bytes - Viewed (0)