mirror of
https://github.com/golang/go
synced 2024-11-22 05:14:40 -07:00
- forward decl bug
SVN=121561
This commit is contained in:
parent
709e3a3fbd
commit
fc184ef887
21
test/bugs/bug043.go
Normal file
21
test/bugs/bug043.go
Normal file
@ -0,0 +1,21 @@
|
||||
// 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.
|
||||
|
||||
// $G $D/$F.go || echo BUG: compilation should succeed
|
||||
|
||||
// Forward declarations
|
||||
|
||||
package main
|
||||
|
||||
func f (x int) ; // this works
|
||||
func f (x int) {}
|
||||
|
||||
func i (x, y int) ; // this works
|
||||
func i (x, y int) {}
|
||||
|
||||
func g (x int) float ; // BUG this doesn't
|
||||
func g (x int) float {}
|
||||
|
||||
func h (x int) (u int, v int) ; // BUG this doesn't
|
||||
func h (x int) (u int, v int) {}
|
@ -269,6 +269,11 @@ BUG: compilation succeeds incorrectly
|
||||
bugs/bug042.go:6: syntax error
|
||||
BUG: compilation should succeed
|
||||
|
||||
=========== bugs/bug043.go
|
||||
bugs/bug043.go:14: error in shape across assignment
|
||||
bugs/bug043.go:17: error in shape across assignment
|
||||
BUG: compilation should succeed
|
||||
|
||||
=========== fixedbugs/bug000.go
|
||||
|
||||
=========== fixedbugs/bug005.go
|
||||
|
Loading…
Reference in New Issue
Block a user