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 package one | 5 package one |
6 | 6 |
7 // Issue 3552 | 7 // Issue 3552 |
8 | 8 |
9 type T struct { int } | 9 type T struct { int } |
10 | 10 |
11 func (t T) F() int { return t.int } | 11 func (t T) F() int { return t.int } |
12 | 12 |
13 type U struct { int int } | 13 type U struct { int int } |
14 | 14 |
15 func (u U) F() int { return u.int } | 15 func (u U) F() int { return u.int } |
16 | 16 |
17 type lint int | 17 type lint int |
18 | 18 |
19 type V struct { lint } | 19 type V struct { lint } |
20 | 20 |
21 func (v V) F() int { return int(v.lint) } | 21 func (v V) F() int { return int(v.lint) } |
22 | 22 |
23 type W struct { lint lint } | 23 type W struct { lint lint } |
24 | 24 |
25 func (w W) F() int { return int(w.lint) } | 25 func (w W) F() int { return int(w.lint) } |
26 | 26 |
27 | 27 |
28 | 28 |
OLD | NEW |