Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 218 for S1 (0.07 sec)

  1. test/fixedbugs/issue61992.go

    // license that can be found in the LICENSE file.
    
    // Issue 61992, inconsistent 'mem' juggling in expandCalls
    
    package p
    
    type S1 struct {
    	a, b, c []int
    	i       int
    }
    
    type S2 struct {
    	a, b []int
    	m    map[int]int
    }
    
    func F(i int, f func(S1, S2, int) int) int {
    	return f(
    		S1{},
    		S2{m: map[int]int{}},
    		1<<i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 15:40:52 UTC 2023
    - 439 bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java

        }
    
        public boolean hasRoles(final String[] acceptedRoles) {
            return stream(user.getRoleNames())
                    .get(stream -> stream.anyMatch(s1 -> stream(acceptedRoles).get(s3 -> s3.anyMatch(s2 -> s2.equals(s1)))));
        }
    
        public boolean hasGroup(final String group) {
            return stream(user.getGroupNames()).get(stream -> stream.anyMatch(s -> s.equals(group)));
        }
    
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  3. test/fixedbugs/issue15042.go

    // license that can be found in the LICENSE file.
    
    // Exchanging two struct fields was compiled incorrectly.
    
    package main
    
    type S struct {
    	i int
    }
    
    func F(c bool, s1, s2 S) (int, int) {
    	if c {
    		s1.i, s2.i = s2.i, s1.i
    	}
    	return s1.i, s2.i
    }
    
    func main() {
    	i, j := F(true, S{1}, S{20})
    	if i != 20 || j != 1 {
    		panic(i+j)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 450 bytes
    - Viewed (0)
  4. test/fixedbugs/bug478.dir/a.go

    // Copyright 2013 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 p1
    
    type S1 struct{}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 209 bytes
    - Viewed (0)
  5. test/typeparam/struct.go

    import (
    	"fmt"
    )
    
    type E[T any] struct {
    	v T
    }
    
    type S1 struct {
    	E[int]
    	v string
    }
    
    type Eint = E[int]
    type Ebool = E[bool]
    type Eint2 = Eint
    
    type S2 struct {
    	Eint
    	Ebool
    	v string
    }
    
    type S3 struct {
    	*E[int]
    }
    
    func main() {
    	s1 := S1{Eint{2}, "foo"}
    	if got, want := s1.E.v, 2; got != want {
    		panic(fmt.Sprintf("got %d, want %d", got, want))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 05 16:29:58 UTC 2024
    - 801 bytes
    - Viewed (0)
  6. src/cmd/compile/internal/syntax/testdata/linalg.go

    		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: Wed Mar 30 18:02:18 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  7. src/io/fs/readdir_test.go

    }
    
    func TestReadDirPath(t *testing.T) {
    	fsys := os.DirFS(t.TempDir())
    	_, err1 := ReadDir(fsys, "non-existent")
    	_, err2 := ReadDir(struct{ FS }{fsys}, "non-existent")
    	if s1, s2 := errorPath(err1), errorPath(err2); s1 != s2 {
    		t.Fatalf("s1: %s != s2: %s", s1, s2)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 27 16:25:41 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. test/fixedbugs/bug1515.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    const (
    	joao = "João"
    	jose = "José"
    )
    
    func main() {
    	s1 := joao
    	s2 := jose
    	if (s1 < s2) != (joao < jose) {
    		panic("unequal")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 320 bytes
    - Viewed (0)
  9. src/go/printer/testdata/comments.x

    type S0 struct {
    	// contains filtered or unexported fields
    }
    
    // The S1 struct; some fields are not exported.
    type S1 struct {
    	S0
    	A, B, C	float	// 3 exported fields
    	D	int	// 2 unexported fields
    	// contains filtered or unexported fields
    }
    
    // The S2 struct; all fields are exported.
    type S2 struct {
    	S1
    	A, B, C	float	// 3 exported fields
    }
    
    // The IZ interface; it is empty.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:31:50 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

        }
        return dummy;
      }
    
      @Benchmark
      int hashString_5(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(S0, S1, S2, S3, S4);
        }
        return dummy;
      }
    
      @Benchmark
      int hashMixed_5(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(I2, S1, D1, S2, I0);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.2K bytes
    - Viewed (0)
Back to top