mirror of
https://github.com/golang/go
synced 2024-11-22 01:14:40 -07:00
Match gccgo error messages.
bug121.go:12:3: error: name list not allowed in interface type bug121.go:16:2: error: expected signature or type name semi1.go:10:76: error: unexpected semicolon or newline before ‘{’ semi1.go:10:5: error: reference to undefined name ‘x’ semi1.go:10:8: error: reference to undefined name ‘y’ semi1.go:12:3: error: reference to undefined name ‘z’ semi2.go:10:79: error: unexpected semicolon or newline before ‘{’ semi2.go:10:9: error: reference to undefined name ‘x’ semi3.go:10:79: error: unexpected semicolon or newline before ‘{’ semi3.go:10:6: error: reference to undefined name ‘x’ semi3.go:10:9: error: reference to undefined name ‘y’ semi3.go:10:12: error: reference to undefined name ‘z’ semi3.go:12:3: error: reference to undefined name ‘z’ semi4.go:11:2: error: unexpected semicolon or newline before ‘{’ semi4.go:10:6: error: reference to undefined name ‘x’ semi4.go:12:3: error: reference to undefined name ‘z’ semi5.go:10:1: error: unexpected semicolon or newline before ‘{’ semi7.go:11:2: error: unexpected semicolon or newline before ‘else’ semi7.go:10:5: error: reference to undefined name ‘x’ slice.go:9:11: error: missing lower bound in slice expression slice.go:9:9: error: reference to undefined name ‘y’ slice.go:9:12: error: reference to undefined name ‘z’ R=rsc CC=golang-dev https://golang.org/cl/201061
This commit is contained in:
parent
d032cd203d
commit
db3ec4f239
@ -9,7 +9,7 @@ package main
|
||||
type T func()
|
||||
|
||||
type I interface {
|
||||
f, g (); // ERROR "syntax|signature"
|
||||
f, g (); // ERROR "name list not allowed"
|
||||
}
|
||||
|
||||
type J interface {
|
||||
|
@ -7,8 +7,8 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
if x; y // ERROR "unexpected semicolon or newline before {"
|
||||
if x; y // ERROR "unexpected semicolon or newline before .?{.?|undefined"
|
||||
{
|
||||
z
|
||||
z // GCCGO_ERROR "undefined"
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
switch x; y // ERROR "unexpected semicolon or newline before {"
|
||||
switch x; y // ERROR "unexpected semicolon or newline before .?{.?|undefined"
|
||||
{
|
||||
z
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
for x; y; z // ERROR "unexpected semicolon or newline before {"
|
||||
for x; y; z // ERROR "unexpected semicolon or newline before .?{.?|undefined"
|
||||
{
|
||||
z
|
||||
z // GCCGO_ERROR "undefined"
|
||||
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
for x
|
||||
{ // ERROR "unexpected semicolon or newline before {"
|
||||
z
|
||||
for x // GCCGO_ERROR "undefined"
|
||||
{ // ERROR "unexpected semicolon or newline before .?{.?"
|
||||
z // GCCGO_ERROR "undefined"
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
package main
|
||||
|
||||
func main()
|
||||
{ // ERROR "unexpected semicolon or newline before {"
|
||||
{ // ERROR "unexpected semicolon or newline before .?{.?"
|
||||
|
||||
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
if x { }
|
||||
else { } // ERROR "unexpected semicolon or newline before else"
|
||||
if x { } // GCCGO_ERROR "undefined"
|
||||
else { } // ERROR "unexpected semicolon or newline before .?else.?"
|
||||
}
|
||||
|
||||
|
||||
|
@ -6,4 +6,4 @@
|
||||
|
||||
package main
|
||||
|
||||
var x = y[:z] // ERROR "missing lower bound in slice expression"
|
||||
var x = y[:z] // ERROR "missing lower bound in slice expression|undefined"
|
||||
|
Loading…
Reference in New Issue
Block a user