]> Cypherpunks repositories - gostls13.git/commitdiff
bug327: document what's being tested
authorRuss Cox <rsc@golang.org>
Fri, 8 Apr 2011 17:42:20 +0000 (13:42 -0400)
committerRuss Cox <rsc@golang.org>
Fri, 8 Apr 2011 17:42:20 +0000 (13:42 -0400)
R=r
CC=golang-dev
https://golang.org/cl/4380043

test/fixedbugs/bug327.go

index 10f309da4eb8c828799e69f5c943287451cffc68..4ba5f6072e8911abf48a5f47d25eb62894509bb1 100644 (file)
@@ -4,15 +4,21 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// 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.
+
 package main
 
 type (
-       a interface{}
-       b interface{}
+       a interface{}
+       b interface{}
 )
 
 func main() {
-       x := a(1)
-       z := b(x)
-       _ = z
+       x := a(1)
+       z := b(x)
+       _ = z
 }