diff options
author | Rob Pike <r@golang.org> | 2009-10-19 11:54:59 -0700 |
---|---|---|
committer | Rob Pike <r@golang.org> | 2009-10-19 11:54:59 -0700 |
commit | 36ccbbdfc6aebf233a9833e91864b144de364c0a (patch) | |
tree | 7876a0789a26b55a1388431a7689b6b0bb464c3b /test/interface | |
parent | 4d4e885bd1541c4a5d9019332c378b8981f00f09 (diff) | |
download | go-36ccbbdfc6aebf233a9833e91864b144de364c0a.tar.gz go-36ccbbdfc6aebf233a9833e91864b144de364c0a.zip |
fiddling while rome burns: explain why tests are commented out
R=rsc
DELTA=2 (2 added, 0 deleted, 0 changed)
OCL=35874
CL=35880
Diffstat (limited to 'test/interface')
-rw-r--r-- | test/interface/struct.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/interface/struct.go b/test/interface/struct.go index 32f95b9326..1c7028e06a 100644 --- a/test/interface/struct.go +++ b/test/interface/struct.go @@ -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; |