Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1150)

Side by Side Diff: test/fixedbugs/bug412.go

Issue 5673079: code review 5673079: test: use testlib (fourth 100) (Closed)
Patch Set: diff -r f25acee8fc0c https://code.google.com/p/go/ Created 13 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/fixedbugs/bug411.go ('k') | test/fixedbugs/bug413.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // errchk $G $D/$F.go 1 // errorcheck
2 2
3 // Copyright 2012 The Go Authors. All rights reserved. 3 // Copyright 2012 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style 4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file. 5 // license that can be found in the LICENSE file.
6 6
7 package p 7 package p
8 8
9 type t struct { 9 type t struct {
10 x int // ERROR "duplicate field x" 10 x int // ERROR "duplicate field x"
11 x int 11 x int
12 } 12 }
13 13
14 func f(t *t) int { 14 func f(t *t) int {
15 return t.x // ERROR "ambiguous selector t.x" 15 return t.x // ERROR "ambiguous selector t.x"
16 } 16 }
OLDNEW
« no previous file with comments | « test/fixedbugs/bug411.go ('k') | test/fixedbugs/bug413.go » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b