Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 137 for t4 (0.02 sec)

  1. src/go/doc/testdata/e.go

    type T4 struct {
    	t2
    	T2
    }
    
    // ----------------------------------------------------------------------------
    // Don't show embedded methods of exported anonymous fields unless AllMethods
    // is set.
    
    type T4 struct{}
    
    // T4.M should appear as method of T5 only if AllMethods is set.
    func (*T4) M() {}
    
    type T5 struct {
    	T4
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.8K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/p256.go

    	t3 := new(fiat.P256Element).Add(p1.x, p1.y)  // t3 := X1 + Y1
    	t4 := new(fiat.P256Element).Add(p2.x, p2.y)  // t4 := X2 + Y2
    	t3.Mul(t3, t4)                               // t3 := t3 * t4
    	t4.Add(t0, t1)                               // t4 := t0 + t1
    	t3.Sub(t3, t4)                               // t3 := t3 - t4
    	t4.Add(p1.y, p1.z)                           // t4 := Y1 + Z1
    	x3 := new(fiat.P256Element).Add(p2.y, p2.z)  // X3 := Y2 + Z2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. test/cmp6.go

    // Does not compile.
    
    package main
    
    func use(bool) {}
    
    type T1 *int
    type T2 *int
    
    type T3 struct{ z []int }
    
    var t3 T3
    
    type T4 struct {
    	_ []int
    	a float64
    }
    
    var t4 T4
    
    func main() {
    	// Arguments to comparison must be
    	// assignable one to the other (or vice versa)
    	// so chan int can be compared against
    	// directional channels but channel of different
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 01 21:49:31 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  4. src/go/doc/testdata/e.1.golden

    	type T3 struct {
    		t1e
    		t2e
    	}
    
    	// T3.M should appear as method of T3. 
    	func (T3) M()
    
    	// 
    	type T4 struct{}
    
    	// T4.M should appear as method of T5 only if AllMethods is set. 
    	func (*T4) M()
    
    	// 
    	type T5 struct {
    		T4
    	}
    
    	// 
    	type U1 struct {
    		*U1
    	}
    
    	// U1.M should appear as method of U1. 
    	func (*U1) M()
    
    	// 
    	type U2 struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 1.8K bytes
    - Viewed (0)
  5. test/map1.go

    	_ map[T2]v    // ERROR "invalid map key"
    	_ map[T3]v    // ERROR "invalid map key"
    	_ map[T4]v    // ERROR "invalid map key"
    	_ map[T5]v
    	_ map[T6]v
    	_ map[T7]v
    	_ map[T8]v
    )
    
    type T1 []int
    type T2 struct { F T1 }
    type T3 []T4
    type T4 struct { F T3 }
    
    type T5 *int
    type T6 struct { F T5 }
    type T7 *T4
    type T8 struct { F *T7 }
    
    func main() {
    	m := make(map[int]int)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 20:13:36 UTC 2020
    - 1.5K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/init1.go

    var y3 = x3
    
    type T3 struct{}
    
    func (T3) m() int {
    	_ = y3
    	return 0
    }
    
    var x4 /* ERROR "initialization cycle" */ = T4{}.m // <<<< added {}
    
    var y4 = x4
    
    type T4 struct{}
    
    func (T4) m() int {
    	_ = y4
    	return 0
    }
    
    var x5 /* ERROR "initialization cycle" */ = T5{}.m() // <<<< added ()
    
    var y5 = x5
    
    type T5 struct{}
    
    func (T5) m() int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  7. test/fixedbugs/issue21273.go

    	type T2 T2 // ERROR "invalid recursive type"
    	type _ map[T2]int
    }
    
    func g() {
    	type T3 struct{ T3 } // ERROR "invalid recursive type"
    	type _ map[T3]int
    }
    
    func h() {
    	type T4 struct{ m map[T4]int } // ERROR "invalid map key"
    	type _ map[T4]int              // GC_ERROR "invalid map key"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 14 17:37:52 UTC 2020
    - 629 bytes
    - Viewed (0)
  8. src/go/doc/testdata/e.2.golden

    		// contains filtered or unexported fields
    	}
    
    	// T3.M should appear as method of T3. 
    	func (T3) M()
    
    	// 
    	type T4 struct{}
    
    	// T4.M should appear as method of T5 only if AllMethods is set. 
    	func (*T4) M()
    
    	// 
    	type T5 struct {
    		T4
    	}
    
    	// T4.M should appear as method of T5 only if AllMethods is set. 
    	func (*T5) M()
    
    	// 
    	type U1 struct {
    		*U1
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.1K bytes
    - Viewed (0)
  9. test/codegen/memops.go

    func idxInt32(x, y []int32, i int) {
    	var t int32
    	// amd64: `MOVL\t4\([A-Z]+[0-9]*\)\([A-Z]+[0-9]*\*4\), [A-Z]+[0-9]*`
    	//   386: `MOVL\t4\([A-Z]+[0-9]*\)\([A-Z]+[0-9]*\*4\), [A-Z]+[0-9]*`
    	t = x[i+1]
    	// amd64: `MOVL\t[A-Z]+[0-9]*, 4\([A-Z]+[0-9]*\)\([A-Z]+[0-9]*\*4\)`
    	//   386: `MOVL\t[A-Z]+[0-9]*, 4\([A-Z]+[0-9]*\)\([A-Z]+[0-9]*\*4\)`
    	y[i+1] = t
    	// amd64: `MOVL\t4\([A-Z]+[0-9]*\)\([A-Z]+[0-9]*\*8\), [A-Z]+[0-9]*`
    	t = x[2*i+1]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 04 16:40:24 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  10. test/fixedbugs/bug194.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    var v1 = T1(1)
    var v2 = T2{2}
    var v3 = T3{0: 3, 1: 4}
    var v4 = T4{0: 5, 1: 6}
    var v5 = T5{0: 7, 1: 8}
    var v6 = T2{f: 9}
    var v7 = T4{f: 10}
    var v8 = T5{f: 11}
    var pf func(T1)
    
    func main() {
    	if v1 != 1 || v2.f != 2 || v3[0] != 3 || v3[1] != 4 ||
    		v4[0] != 5 || v4[1] != 6 || v5[0] != 7 || v5[1] != 8 ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 18 21:15:42 UTC 2012
    - 651 bytes
    - Viewed (0)
Back to top