mirror of
https://github.com/golang/go
synced 2024-11-14 08:10:22 -07:00
86d97aa981
bug349.go:12:14: error: expected ‘;’ or ‘}’ or newline bug349.go:12:2: error: not enough arguments to return R=golang-dev, gri CC=golang-dev https://golang.org/cl/5081047
14 lines
376 B
Go
14 lines
376 B
Go
// errchk $G $D/$F.go
|
|
|
|
// Copyright 2011 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.
|
|
|
|
// issue 1192 - detail in error
|
|
|
|
package main
|
|
|
|
func foo() (a, b, c int) {
|
|
return 0, 1 2.01 // ERROR "unexpected literal 2.01|expected ';' or '}' or newline|not enough arguments to return"
|
|
}
|