import syntax incorrect

R=r
OCL=19457
CL=19457
This commit is contained in:
Robert Griesemer 2008-11-18 09:39:34 -08:00
parent c78005f648
commit 6c5fc055c8
2 changed files with 20 additions and 2 deletions

15
test/bugs/bug125.go Normal file
View File

@ -0,0 +1,15 @@
// errchk $G $D/$F.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 main
import (
OS "os" // should require semicolon here; this is no different from other decls
IO "io"
)
func main() {
}

View File

@ -125,7 +125,7 @@ BUG: errchk: command succeeded unexpectedly: 6g bugs/bug104.go
=========== bugs/bug105.go
bugs/bug105.go:8: P: undefined
bugs/bug105.go:8: illegal types for operand: RETURN
bugs/bug105.go:9: illegal types for operand: RETURN
int
BUG: should compile
@ -139,7 +139,7 @@ BUG: bug115 should compile
=========== bugs/bug117.go
bugs/bug117.go:9: undefined DOT get on PS
bugs/bug117.go:9: illegal types for operand: RETURN
bugs/bug117.go:10: illegal types for operand: RETURN
int
BUG: should compile
@ -169,6 +169,9 @@ BUG: errchk: command succeeded unexpectedly: 6g bugs/bug123.go
=========== bugs/bug124.go
BUG: errchk: command succeeded unexpectedly: 6g bugs/bug124.go
=========== bugs/bug125.go
BUG: errchk: command succeeded unexpectedly: 6g bugs/bug125.go
=========== fixedbugs/bug016.go
fixedbugs/bug016.go:7: overflow converting constant to uint