2012-02-16 21:49:59 -07:00
|
|
|
// run
|
2011-04-07 16:53:47 -06:00
|
|
|
|
2016-04-10 15:32:26 -06:00
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
2011-04-07 16:53:47 -06:00
|
|
|
// 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
|
|
|
}
|