]> Cypherpunks.ru repositories - gostls13.git/commitdiff
fiddling while rome burns: explain why tests are commented out
authorRob Pike <r@golang.org>
Mon, 19 Oct 2009 18:54:59 +0000 (11:54 -0700)
committerRob Pike <r@golang.org>
Mon, 19 Oct 2009 18:54:59 +0000 (11:54 -0700)
R=rsc
DELTA=2  (2 added, 0 deleted, 0 changed)
OCL=35874
CL=35880

test/interface/struct.go

index 32f95b9326d2959ace16b77133e59cc04dd6904f..1c7028e06addfaf4ae4e40849a122808408946e1 100644 (file)
@@ -53,6 +53,7 @@ type S2 struct { i int }
 func (p *S2) Get() int { return p.i }
 func (p *S2) Put(i int) { p.i = i }
 
+// Disallowed by restriction of values going to pointer receivers
 // func f4() {
 //      s := S2{1};
 //      var i I1 = s;
@@ -111,6 +112,7 @@ type S4 struct { i, j, k, l int64 }
 func (p *S4) Get() int64 { return p.l }
 func (p *S4) Put(i int64) { p.l = i }
 
+// Disallowed by restriction of values going to pointer receivers
 // func f10() {
 //      s := S4{1, 2, 3, 4};
 //      var i I2 = s;