- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 218 for S1 (0.04 sec)
-
tensorflow/cc/experimental/libtf/impl/string_test.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jul 30 17:28:28 UTC 2021 - 1002 bytes - Viewed (0) -
src/internal/types/testdata/check/cycles0.go
A3 [10]A4 A4 A2 A5 [10]A6 A6 *A5 // slices L0 []L0 // structs S0 /* ERROR "invalid recursive type: S0 refers to itself" */ struct{ _ S0 } S1 /* ERROR "invalid recursive type: S1 refers to itself" */ struct{ S1 } S2 struct{ _ *S2 } S3 struct{ *S3 } S4 /* ERROR "invalid recursive type" */ struct{ S5 } S5 struct{ S6 } S6 S4 // pointers P0 *P0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 3.6K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue51257.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p func f[_ comparable]() {} type S1 struct{ x int } type S2 struct{ x any } type S3 struct{ x [10]interface{ m() } } func _[P1 comparable, P2 S2]() { _ = f[S1] _ = f[S2] _ = f[S3] type L1 struct { x P1 } type L2 struct { x P2 } _ = f[L1] _ = f[L2 /* ERROR "L2 does not satisfy comparable" */ ] }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:56:37 UTC 2023 - 766 bytes - Viewed (0) -
test/fixedbugs/issue65893.go
// compile // Copyright 2024 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 p type ( s = struct{ f func(s1) } s1 = struct{ i I } ) type I interface { S() *s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 01:45:48 UTC 2024 - 269 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue57522.go
// A simplified version of the code in the original report. type S[T any] struct{} var V = S[any]{} func (fs *S[T]) M(V.M /* ERROR "V.M is not a type" */) {} // Other minimal reproducers. type S1[T any] V1.M /* ERROR "V1.M is not a type" */ 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
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 11 22:29:34 UTC 2023 - 728 bytes - Viewed (0) -
src/go/parser/testdata/linalg.go2
~uint|~uint8|~uint16|~uint32|~uint64|~uintptr| ~float32|~float64| ~complex64|~complex128 } func DotProduct[T Numeric](s1, s2 []T) T { if len(s1) != len(s2) { panic("DotProduct: slices of unequal length") } var r T for i := range s1 { r += s1[i] * s2[i] } return r } // NumericAbs matches numeric types with an Abs method. type NumericAbs[T any] interface { Numeric
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 28 15:34:22 UTC 2021 - 2K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue67547.go
} func _[P map[int]int]() { type A = P var m A clear(m) // don't report an error for m } type S1 struct { x int "S1.x" } type S2 struct { x int "S2.x" } func _[P1 S1, P2 S2]() { type A = P1 var p A _ = P2(p) // conversion must be valid } func _[P1 S1, P2 S2]() { var p P1 type A = P2 _ = A(p) // conversion must be valid } func _[P int | string]() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 1.8K bytes - Viewed (0) -
test/fixedbugs/issue6295.dir/p2.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 327 bytes - Viewed (0) -
test/method.go
} if ps.val() != 2 { println("ps.val:", ps.val()) panic("fail") } if (*S1).val(ps) != 2 { println("(*S1).val(ps):", (*S1).val(ps)) panic("fail") } if i.val() != 3 { println("i.val:", i.val()) panic("fail") } if I.val(i) != 3 { println("I.val(i):", I.val(i)) panic("fail") } if (*I).val(&i) != 3 { println("(*I).val(&i):", (*I).val(&i)) panic("fail") } if pi.val() != 4 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 11 23:20:52 UTC 2013 - 5.2K bytes - Viewed (0) -
test/fixedbugs/issue45913.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main import ( "fmt" ) func f(s1, s2 string) { fmt.Printf("%s %s", s1, s2) } func main() { f([2]string{"a", "b"}...) // ERROR "invalid use of .*[.][.][.]|cannot use [.][.][.] in call to non-variadic"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 03 15:03:57 UTC 2021 - 389 bytes - Viewed (0)