- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 218 for S1 (0.11 sec)
-
src/internal/types/testdata/fixedbugs/issue49735.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p func _[P1 any, P2 ~byte](s1 P1, s2 P2) { _ = append(nil /* ERROR "first argument to append must be a slice; have untyped nil" */ , 0) _ = append(s1 /* ERRORx `s1 .* has no core type` */ , 0) _ = append(s2 /* ERRORx `s2 .* has core type byte` */ , 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 447 bytes - Viewed (0) -
src/runtime/testdata/testprog/stringconcat.go
package main import "strings" func init() { register("stringconcat", stringconcat) } func stringconcat() { s0 := strings.Repeat("0", 1<<10) s1 := strings.Repeat("1", 1<<10) s2 := strings.Repeat("2", 1<<10) s3 := strings.Repeat("3", 1<<10) s := s0 + s1 + s2 + s3 panic(s)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 23:34:33 UTC 2016 - 443 bytes - Viewed (0) -
test/fixedbugs/issue21253.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 17 18:09:52 UTC 2017 - 393 bytes - Viewed (0) -
test/fixedbugs/bug242.go
close(c) // 17 18 *f(), p2 = <-e1(c, 18) a[17] += '0' if !p1 || p2 { println("bad chan check", i, p1, p2) panic("fail") } s1 := S1{'D'} s2 := S2{'E'} var iv I // 19 20 *e3(&iv, 19), p1 = e2(s1, 20).(I) // 21 22 *e3(&iv, 21), p2 = e2(s2, 22).(I) if !p1 || p2 { println("bad interface check", i, p1, p2) panic("fail") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 18 21:15:42 UTC 2012 - 2.1K bytes - Viewed (0) -
test/typeparam/issue50109b.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package main func main() { F[any]() } func F[T any]() I[T] { return (*S1[T])(nil) } type I[T any] interface{} type S1[T any] struct { *S2[T] } type S2[T any] struct { S3 *S3[T] } type S3[T any] struct { x int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 390 bytes - Viewed (0) -
src/cmd/internal/obj/objfile_test.go
) var dummyArch = LinkArch{Arch: sys.ArchAMD64} func TestContentHash64(t *testing.T) { s1 := &LSym{P: []byte("A")} s2 := &LSym{P: []byte("A\x00\x00\x00")} s1.Set(AttrContentAddressable, true) s2.Set(AttrContentAddressable, true) h1 := contentHash64(s1) h2 := contentHash64(s2) if h1 != h2 { t.Errorf("contentHash64(s1)=%x, contentHash64(s2)=%x, expect equal", h1, h2) } ctxt := Linknew(&dummyArch) // little endian
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:21:30 UTC 2022 - 3.7K bytes - Viewed (0) -
test/typeparam/sliceimp.dir/a.go
return b } // Equal reports whether two slices are equal: the same length and all // elements equal. All floating point NaNs are considered equal. func Equal[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i] if v1 != v2 { isNaN := func(f Elem) bool { return f != f } if !isNaN(v1) || !isNaN(v2) { return false } } } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 30 01:55:58 UTC 2021 - 3.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ObjectsTest.java
assertTrue(Objects.equal(1, 1)); assertTrue(Objects.equal(null, null)); // test distinct string objects String s1 = "foobar"; String s2 = new String(s1); assertTrue(Objects.equal(s1, s2)); assertFalse(Objects.equal(s1, null)); assertFalse(Objects.equal(null, s1)); assertFalse(Objects.equal("foo", "bar")); assertFalse(Objects.equal("1", 1)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 18:32:41 UTC 2024 - 2.3K bytes - Viewed (0) -
test/typeparam/setsimp.dir/a.go
package a // SliceEqual reports whether two slices are equal: the same length and all // elements equal. All floating point NaNs are considered equal. func SliceEqual[Elem comparable](s1, s2 []Elem) bool { if len(s1) != len(s2) { return false } for i, v1 := range s1 { v2 := s2[i] if v1 != v2 { isNaN := func(f Elem) bool { return f != f } if !isNaN(v1) || !isNaN(v2) { return false } } } return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 26 21:39:54 UTC 2021 - 2.7K bytes - Viewed (0) -
src/internal/types/testdata/check/expr2.go
var k interface { m() float32 } _ = i == ii _ = i == k /* ERROR "mismatched types" */ // interfaces vs values var s1 S1 var s11 S11 var s2 S2 _ = i == 0 /* ERROR "cannot convert" */ _ = i == s1 /* ERROR "mismatched types" */ _ = i == &s1 _ = i == &s11 _ = i == s2 /* ERROR "mismatched types" */ _ = i == & /* ERROR "mismatched types" */ s2 // issue #28164
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 5K bytes - Viewed (0)