]> Cypherpunks repositories - gostls13.git/commitdiff
describe each interface test
authorRuss Cox <rsc@golang.org>
Tue, 12 May 2009 23:09:47 +0000 (16:09 -0700)
committerRuss Cox <rsc@golang.org>
Tue, 12 May 2009 23:09:47 +0000 (16:09 -0700)
R=r
DELTA=20  (20 added, 0 deleted, 0 changed)
OCL=28707
CL=28716

test/interface1.go
test/interface10.go
test/interface2.go
test/interface3.go
test/interface5.go
test/interface6.go
test/interface7.go
test/interface8.go
test/interface9.go

index 649a955f6d7bb03a31f79f2c311477ce1f681909..202c37d86054b0ac8605dedb9a506675ced83172 100644 (file)
@@ -4,6 +4,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Check that interface{M()} = *interface{M()} produces a compiler error.
+
 package main
 
 type Inst interface {
index c52a20fcd8c3525831d5d8c96e7088ac3a8dbc19..d216b890d596e1956404da2579d571c20e8d6be7 100644 (file)
@@ -4,6 +4,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Check methods derived from embedded interface and *interface values.
+
 package main
 
 import "os"
index 53676787ff6734355049f28700ccf5ec67967359..1e3758069f5282455e786a7c11ffd64462f19bbd 100644 (file)
@@ -4,6 +4,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Check that interface conversion fails when method is missing.
+
 package main
 
 type S struct
index 04af91a0290b3d08b4c2bd04d3b0a225ca827a85..93298bce78f0c6673a34bb9d37e61f5370864e9a 100644 (file)
@@ -4,6 +4,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Check methods with different return types.
+
 package main
 
 type S struct { a int }
index 86036a778bed70542b89968d63468e56ccd2b28d..3b5ed01ca4ff0ea843d46569737fb206f55eee1e 100644 (file)
@@ -4,6 +4,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Static error messages about interface conversions.
+
 package main
 
 type T struct { a int }
index c675595fd8cf68919114801e11b352666126c0af..49926f0a2fe9e9970ceaf31e86e495f02f404544 100644 (file)
@@ -4,6 +4,8 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Interface values containing structures.
+
 package main
 
 import "os"
index ee1ac31165d874d44ec76169ff9c3df9c4019da3..a52d7a5a118eb02e332dcd130cc521293e874eaf 100644 (file)
@@ -4,6 +4,9 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
+// Interface comparisons using types hidden
+// inside reflected-on structs.
+
 package main
 
 import "reflect"
index f7dc04d34ca7e1701707696f5ee99dff5b45626b..4c2d4d4c5c74f588ec0d6b70616914433e5c9242 100644 (file)
@@ -4,6 +4,9 @@
 
 // $G $F.go && $L $F.$A && ./$A.out
 
+// Implicit methods for embedded types.
+// Mixed pointer and non-pointer receivers.
+
 package main
 
 type T int
index 9ba5864a80ab13682e6e204fe66c119470863ae8..42214bd7693170d7f04928d3f06c8a59c749eaed 100644 (file)
@@ -4,6 +4,8 @@
 
 // errchk $G $F.go
 
+// Error messages about missing implicit methods.
+
 package main
 
 type T int