- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for t7 (0.02 sec)
-
src/internal/types/testdata/check/decls2/decls2b.go
// may have a trailing comma. type T7 struct {} func (T7) m1() {} func ((T7)) m2() {} func ((*T7)) m3() {} func (x *(T7),) m4() {} func (x (*(T7)),) m5() {} func (x ((*((T7)))),) m6() {} // Check that methods with parenthesized receiver are actually present (issue #23130). var ( _ = T7.m1 _ = T7.m2 _ = (*T7).m3 _ = (*T7).m4 _ = (*T7).m5 _ = (*T7).m6
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 1.9K bytes - Viewed (0) -
test/fixedbugs/issue53454.go
type T6 struct { T9 C T10 } type T7 struct { T10 T11 } type T8 struct { T9 C T7 } type T9 struct { A T5 B T3 D T4 } type T10 struct { W float64 } type T11 struct { X float64 Y float64 } func MainTest(x T1, y T8, z T6) float64 { return Test(x.B, x.A, x.D, x.C, y.B, y.A, y.D, y.C, z.B, z.A, z.D, T7{ T10: T10{ W: z.C.W, },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 21 17:23:40 UTC 2022 - 1002 bytes - Viewed (0) -
src/internal/types/testdata/check/cycles4.go
} func _(x T1, y T3) { x = y } // Check that interfaces are type-checked in order of // (embedded interface) dependencies (was issue 7158). var x1 T5 = T7(nil) type T5 interface { T6 } type T6 interface { m() T7 } type T7 interface { T5 } // Actual test case from issue 7158. func wrapNode() Node { return wrapElement() } func wrapElement() Element { return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 2K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue6977.go
T2 interface { T1; T1 } T3 interface { T2; T2 } T4 interface { T3; T3 } T5 interface { T4; T4 } T6 interface { T5; T5 } T7 interface { T6; T6 } T8 interface { T7; T7 } T9 interface { T8; T8 } // TODO(gri) Enable this longer test once we have found a solution // for the incorrect optimization in the validType check
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 22:04:33 UTC 2024 - 2.6K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue28251.go
type ( T4 = ((*(T5))) T5 = T ) func (T4) m4() {} func _() { (T{}).m4 /* ERROR "cannot call pointer method m4 on T" */ () } func _() { (&T{}).m4() } type ( T6 = (((T7))) T7 = (*(T8)) T8 = T ) func (T6) m6() {} func _() { (T{}).m6 /* ERROR "cannot call pointer method m6 on T" */ () } func _() { (&T{}).m6() } type ( T9 = *T10 T10 = *T11
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 09 17:24:42 UTC 2023 - 1.3K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue39938.go
_ E3[T3] } type T4 /* ERROR "invalid recursive type" */ [10]E5[T4] type T5 struct { _ E0[E2[T5]] } type T6 struct { _ E0[E2[E0[E1[E2[[10]T6]]]]] } type T7 struct { _ E0[[10]E2[E0[E2[E2[T7]]]]] } type T8 struct { _ E0[[]E2[E0[E2[E2[T8]]]]] } type T9 /* ERROR "invalid recursive type" */ [10]E2[E5[E2[T9]]]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 948 bytes - Viewed (0) -
src/internal/types/testdata/check/cycles5.go
// more esoteric cases type ( T1 interface { T2 } T2 /* ERROR "invalid recursive type" */ T2 ) type ( T3 interface { T4 } T4 /* ERROR "invalid recursive type" */ T5 T5 = T6 T6 = T7 T7 = T4 ) // arbitrary code may appear inside an interface const n = unsafe.Sizeof(func(){}) type I interface { m([unsafe.Sizeof(func() { I.m(nil, [n]byte{}) })]byte) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 05 18:13:11 UTC 2024 - 3.2K bytes - Viewed (0) -
src/internal/types/testdata/check/init2.go
type E6p int func (*E6p) m() int { _ = x6p; return 0 } var x6p /* ERROR "initialization cycle" */ = (*T6p).m(nil) // cycles through method values type T7 int func (T7) m() int { _ = x7; return 0 } var x7 /* ERROR "initialization cycle" */ = T7(0).m type T8 int func (T8) m() int { _ = x8; return 0 } var x8 /* ERROR "initialization cycle" */ = T8(0).m() type T7p int func (*T7p) m() int { _ = x7p; return 0 }
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/check/cycles5a.go
// more esoteric cases type ( T1 interface { T2 } T2 /* ERROR "invalid recursive type" */ T2 ) type ( T3 interface { T4 } T4 /* ERROR "invalid recursive type" */ T5 T5 = T6 T6 = T7 T7 = T4 ) // arbitrary code may appear inside an interface const n = unsafe.Sizeof(func(){}) type I interface { m([unsafe.Sizeof(func() { I.m(nil, [n]byte{}) })]byte) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 05 18:13:11 UTC 2024 - 3.1K bytes - Viewed (0) -
src/internal/types/testdata/check/cycles0.go
package cycles import "unsafe" type ( T0 int T1 /* ERROR "invalid recursive type: T1 refers to itself" */ T1 T2 *T2 T3 /* ERROR "invalid recursive type" */ T4 T4 T5 T5 T3 T6 T7 T7 *T8 T8 T6 // arrays A0 /* ERROR "invalid recursive type" */ [10]A0 A1 [10]*A1 A2 /* ERROR "invalid recursive type" */ [10]A3 A3 [10]A4 A4 A2 A5 [10]A6 A6 *A5 // slices
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 3.6K bytes - Viewed (0)