Skip to content

Commit

Permalink
test: gofmt fixedbugs/issue10975.go
Browse files Browse the repository at this point in the history
Change-Id: I772d1bc3e394cdd707f210f2aaff77100d299e24
Reviewed-on: https://go-review.googlesource.com/15380
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
minux committed Oct 6, 2015
1 parent cfb116d commit 48b1e6b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/fixedbugs/issue10975.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Issue 10975: Returning an invalid interface would cause
// `internal compiler error: getinarg: not a func`.
// Issue 10975: Returning an invalid interface would cause
// `internal compiler error: getinarg: not a func`.

package main

type I interface {
int // ERROR "interface contains embedded non-interface int"
int // ERROR "interface contains embedded non-interface int"
}

func New() I {
return struct{}{}
}

0 comments on commit 48b1e6b

Please sign in to comment.