2011-04-07 16:53:47 -06:00
|
|
|
// $G $D/$F.go && $L $F.$A && ./$A.out
|
|
|
|
|
|
|
|
// 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.
|
|
|
|
|
2011-04-08 11:42:20 -06:00
|
|
|
// Conversion between identical interfaces.
|
|
|
|
// Issue 1647.
|
|
|
|
|
|
|
|
// The compiler used to not realize this was a no-op,
|
|
|
|
// so it generated a call to the non-existent function runtime.convE2E.
|
|
|
|
|
2011-04-07 16:53:47 -06:00
|
|
|
package main
|
|
|
|
|
|
|
|
type (
|
2011-04-08 11:42:20 -06:00
|
|
|
a interface{}
|
|
|
|
b interface{}
|
2011-04-07 16:53:47 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
2011-04-08 11:42:20 -06:00
|
|
|
x := a(1)
|
|
|
|
z := b(x)
|
|
|
|
_ = z
|
2011-04-07 16:53:47 -06:00
|
|
|
}
|