- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 69 for i0 (0.02 sec)
-
test/fixedbugs/bug248.dir/bug2.go
// interfaces involving the two type I0 interface { M(p0.T) } type I1 interface { M(p1.T) } // t0 satisfies I0 and p0.I type t0 int func (t0) M(p0.T) {} // t1 satisfies I1 and p1.I type t1 float64 func (t1) M(p1.T) {} // check static interface assignments var i0 I0 = t0(0) // ok var i1 I1 = t1(0) // ok var i2 I0 = t1(0) // ERROR "does not implement|incompatible"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 19 06:26:35 UTC 2021 - 1.5K bytes - Viewed (0) -
src/internal/types/testdata/check/expr0.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 16:11:16 UTC 2023 - 4.4K bytes - Viewed (0) -
test/fixedbugs/bug248.dir/bug3.go
package main import ( p0 "./bug0" p1 "./bug1" "reflect" "strings" ) var v0 p0.T var v1 p1.T type I0 interface { M(p0.T) } type I1 interface { M(p1.T) } type t0 int func (t0) M(p0.T) {} type t1 float64 func (t1) M(p1.T) {} var i0 I0 = t0(0) // ok var i1 I1 = t1(0) // ok var p0i p0.I = t0(0) // ok var p1i p1.I = t1(0) // ok func main() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 26 15:20:42 UTC 2018 - 1.9K bytes - Viewed (0) -
src/image/draw/draw.go
colorIndex := uint8(dst0.Palette.Index(src0.C)) i0 := dst0.PixOffset(r.Min.X, r.Min.Y) i1 := i0 + r.Dx() for i := i0; i < i1; i++ { dst0.Pix[i] = colorIndex } firstRow := dst0.Pix[i0:i1] for y := r.Min.Y + 1; y < r.Max.Y; y++ { i0 += dst0.Stride i1 += dst0.Stride copy(dst0.Pix[i0:i1], firstRow) } return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 33.9K bytes - Viewed (0) -
src/go/printer/testdata/comments.x
type SZ interface{} // The I0 interface; no method is exported. type I0 interface { // contains filtered or unexported methods } // The I1 interface; some methods are not exported. type I1 interface { I0 F(x float) float // exported methods // contains filtered or unexported methods } // The I2 interface; all methods are exported. type I2 interface { I0 F(x float) float // exported method
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:50 UTC 2022 - 1.2K bytes - Viewed (0) -
src/internal/types/testdata/check/cycles0.go
S6 S4 // pointers P0 *P0 PP *struct{ PP.f /* ERROR "PP.f is not a type" */ } // functions F0 func(F0) F1 func() F1 F2 func(F2) F2 // interfaces I0 /* ERROR "invalid recursive type: I0 refers to itself" */ interface{ I0 } I1 /* ERROR "invalid recursive type" */ interface{ I2 } I2 interface{ I3 } I3 interface{ I1 } I4 interface{ f(I4) } // testcase for issue 5090 I5 interface{ f(I6) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 3.6K bytes - Viewed (0) -
test/assign1.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sun Feb 19 02:19:43 UTC 2012 - 5.6K bytes - Viewed (0) -
src/cmd/compile/internal/test/abiutils_test.go
// func(x int32) int32 i32 := types.Types[types.TINT32] ft := mkFuncType(nil, []*types.Type{i32}, []*types.Type{i32}) // expected results exp := makeExpectedDump(` IN 0: R{ I0 } spilloffset: 0 typ: int32 OUT 0: R{ I0 } spilloffset: -1 typ: int32 offsetToSpillArea: 0 spillAreaSize: 8 `) abitest(t, ft, exp) } func TestABIUtilsBasic2(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 04 15:11:40 UTC 2023 - 14.2K bytes - Viewed (0) -
test/fixedbugs/bug284.go
// license that can be found in the LICENSE file. // Test cases for revised conversion rules. package main func main() { type NewInt int i0 := 0 var i1 int = 1 var i2 NewInt = 1 i0 = i0 i0 = i1 i0 = int(i2) i1 = i0 i1 = i1 i1 = int(i2) i2 = NewInt(i0) i2 = NewInt(i1) i2 = i2 type A1 [3]int type A2 [3]NewInt var a0 [3]int var a1 A1 var a2 A2 a0 = a0 a0 = a1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 17 04:49:59 UTC 2012 - 3.5K bytes - Viewed (0) -
test/fixedbugs/issue15013.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 559 bytes - Viewed (0)