- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 844 for bug2 (0.06 sec)
-
test/fixedbugs/bug133.dir/bug2.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package bug2 import _ "./bug1" import "./bug0" type T2 struct { t bug0.T } func fn(p *T2) int { // This reference should be invalid, because bug0.T.i is local // to package bug0 and should not be visible in package bug1. return p.t.i; // ERROR "field|undef"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 426 bytes - Viewed (0) -
test/fixedbugs/bug248.dir/bug2.go
// Copyright 2010 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 s import ( p0 "./bug0" p1 "./bug1" ) // both p0.T and p1.T are struct { X, Y int }. var v0 p0.T var v1 p1.T // interfaces involving the two type I0 interface { M(p0.T) } type I1 interface { M(p1.T) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 19 06:26:35 UTC 2021 - 1.5K bytes - Viewed (0) -
test/fixedbugs/issue54632.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 24 14:31:08 UTC 2022 - 609 bytes - Viewed (0) -
test/fixedbugs/bug248.go
// Copyright 2009 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 ignored // Compile: bug0.go, bug1.go // Compile and errorCheck: bug2.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 328 bytes - Viewed (0) -
test/fixedbugs/bug272.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 407 bytes - Viewed (0) -
src/encoding/gob/encoder_test.go
} // Mutually recursive slices of structs caused problems. type Bug3 struct { Num int Children []*Bug3 } func TestGobPtrSlices(t *testing.T) { in := []*Bug3{ {1, nil}, {2, nil}, } b := new(bytes.Buffer) err := NewEncoder(b).Encode(&in) if err != nil { t.Fatal("encode:", err) } var out []*Bug3 err = NewDecoder(b).Decode(&out) if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 29.7K bytes - Viewed (0) -
test/fixedbugs/bug088.dir/bug1.go
package main import P "./bug0" func main() { a0 := P.V0(); // works a1 := P.V1(); // works a2, b2 := P.V2(); // doesn't work _, _, _, _ = a0, a1, a2, b2; } /* uetli:~/Source/go1/test/bugs/bug088.dir gri$ 6g bug0.go && 6g bug1.go bug1.go:8: shape error across := bug1.go:8: a2: undefined bug1.go:8: b2: undefined bug1.go:8: illegal types for operand: AS (<(bug0)P.int32>INT32)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 550 bytes - Viewed (0) -
test/fixedbugs/bug248.dir/bug3.go
// path is full (rooted) path name. check suffix for gc, prefix for gccgo if s := reflect.TypeOf(v0).PkgPath(); !strings.HasSuffix(s, "/bug0") && !strings.HasPrefix(s, "bug0") { println("bad v0 path", len(s), s) panic("fail") } if s := reflect.TypeOf(v1).PkgPath(); !strings.HasSuffix(s, "/bug1") && !strings.HasPrefix(s, "bug1") { println("bad v1 path", s) panic("fail") } // check that dynamic interface check doesn't get confused
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 26 15:20:42 UTC 2018 - 1.9K bytes - Viewed (0) -
test/fixedbugs/bug133.dir/bug1.go
// Copyright 2009 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 bug1 import "./bug0"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 218 bytes - Viewed (0) -
src/html/template/exec_test.go
{"bug2", "{{$.NonEmptyInterface.Method0}}", "M0", tVal, true}, // Struct values were not legal in with - mere oversight. {"bug3", "{{with $}}{{.Method0}}{{end}}", "M0", tVal, true}, // Nil interface values in if. {"bug4", "{{if .Empty0}}non-nil{{else}}nil{{end}}", "nil", tVal, true}, // Stringer. {"bug5", "{{.Str}}", "foozle", tVal, true}, {"bug5a", "{{.Err}}", "erroozle", tVal, true},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Feb 24 21:59:12 UTC 2024 - 57.6K bytes - Viewed (0)