Side by Side Diff: src/pkg/go/types/testdata/decls2b.src
Issue 7013049 :
code review 7013049: go/types: moved from exp/types (Closed)
Patch Set: diff -r d7f56af8557e https://code.google.com/p/go
Use n/p to move between diff chunks;
N/P to move between comments.
Please Sign in to add in-line comments.
Jump to:
src/pkg/exp/gotype/gotype.go
src/pkg/exp/gotype/gotype_test.go
src/pkg/go/types/api.go
src/pkg/go/types/builtins.go
src/pkg/go/types/check.go
src/pkg/go/types/check_test.go
src/pkg/go/types/const.go
src/pkg/go/types/conversions.go
src/pkg/go/types/errors.go
src/pkg/go/types/exportdata.go
src/pkg/go/types/expr.go
src/pkg/go/types/gcimporter.go
src/pkg/go/types/gcimporter_test.go
src/pkg/go/types/operand.go
src/pkg/go/types/predicates.go
src/pkg/go/types/resolver_test.go
src/pkg/go/types/stmt.go
src/pkg/go/types/testdata/builtins.src
src/pkg/go/types/testdata/const0.src
src/pkg/go/types/testdata/conversions.src
src/pkg/go/types/testdata/decls0.src
src/pkg/go/types/testdata/decls1.src
src/pkg/go/types/testdata/decls2a.src
src/pkg/go/types/testdata/decls2b.src
src/pkg/go/types/testdata/decls3.src
src/pkg/go/types/testdata/exports.go
src/pkg/go/types/testdata/expr0.src
src/pkg/go/types/testdata/expr1.src
src/pkg/go/types/testdata/expr2.src
src/pkg/go/types/testdata/expr3.src
src/pkg/go/types/testdata/stmt0.src
src/pkg/go/types/types.go
src/pkg/go/types/types_test.go
src/pkg/go/types/universe.go
OLD NEW
1 // Copyright 2012 The Go Authors. All rights reserved. 1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 // method declarations 5 // method declarations
6 6
7 package decls2 7 package decls2
8 8
9 const pi = 3.1415 9 const pi = 3.1415
10 10
11 func (T1) m /* ERROR "redeclared" */ () {} 11 func (T1) m /* ERROR "redeclared" */ () {}
12 12
13 type T3 struct { 13 type T3 struct {
14 f *T3 14 f *T3
15 } 15 }
16 16
17 type T6 struct { 17 type T6 struct {
18 x int 18 x int
19 } 19 }
20 20
21 func (t *T6) m1() int { 21 func (t *T6) m1() int {
22 return t.x 22 return t.x
23 } 23 }
24 24
25 func f() { 25 func f() {
26 var t *T6 26 var t *T6
27 t.m1() 27 t.m1()
28 } 28 }
OLD NEW