mirror of https://github.com/golang/go.git
parent
c1736ed6be
commit
ea0569026c
|
|
@ -1,11 +0,0 @@
|
||||||
// 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 succeeds incorrectly
|
|
||||||
|
|
||||||
package main
|
|
||||||
|
|
||||||
type Iputs interface {
|
|
||||||
puts func(s string); // BUG no func allowed
|
|
||||||
}
|
|
||||||
|
|
@ -7,7 +7,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
|
|
||||||
func f() (i int, f float) {
|
func f(i int, f float) {
|
||||||
i = 8;
|
i = 8;
|
||||||
f = 8.0;
|
f = 8.0;
|
||||||
return;
|
return;
|
||||||
Loading…
Reference in New Issue