summaryrefslogtreecommitdiff
path: root/test/assign.go
AgeCommit message (Collapse)AuthorFilesLines
2015-01-15Imported Upstream version 1.4upstream/1.4Tianon Gravi1-0/+12
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý1-12/+15
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+53
2011-09-13Imported Upstream version 60Ondřej Surý1-53/+0
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-24/+24
2009-12-03gc: check for assignment to private fields during initializationRuss Cox1-0/+8
R=ken2 http://codereview.appspot.com/165055
2009-11-15gc: five bug fixes, one better error.Russ Cox1-1/+9
* check for struct literal assignment to private fields. * record, fix crash involving parallel map assignment. * avoid infinite recursion in exportassignok. * make floating point bounds check precise. * avoid crash on invalid receiver. * add context to error about implicit assignment. Fixes issue 86. Fixes issue 88. Fixes issue 158. Fixes issue 174. Fixes issue 201. Fixes issue 204. R=ken2 http://codereview.appspot.com/154144
2009-10-09rewrite errchk in perl for speed (compared to bash)Russ Cox1-4/+4
R=iant DELTA=125 (51 added, 53 deleted, 21 changed) OCL=35508 CL=35511
2009-09-15last round: non-package codeRuss Cox1-0/+4
R=r DELTA=127 (38 added, 3 deleted, 86 changed) OCL=34640 CL=34650
2009-05-31Adjust expected errors to work with gccgo.Ian Lance Taylor1-4/+4
The change to assign.go is because the gcc testsuite fails to handle .* in a normal way: it matches against the entire compiler output, not just a single line. assign.go:15:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key') assign.go:19:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key') assign.go:23:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key') assign.go:27:6: error: incompatible types in assignment (implicit assignment of 'sync.Mutex' hidden field 'key') chan/perm.go:14:5: error: incompatible types in assignment chan/perm.go:15:5: error: incompatible types in assignment chan/perm.go:16:6: error: incompatible types in assignment chan/perm.go:17:6: error: incompatible types in assignment chan/perm.go:24:7: error: invalid send on receive-only channel chan/perm.go:25:12: error: invalid send on receive-only channel chan/perm.go:31:4: error: invalid receive on send-only channel chan/perm.go:32:9: error: invalid receive on send-only channel chan/perm.go:38:2: error: invalid send on receive-only channel chan/perm.go:42:2: error: invalid receive on send-only channel initializerr.go:14:17: error: reference to undefined variable 'X' initializerr.go:14:19: error: mixture of field and value initializers initializerr.go:15:26: error: duplicate value for field 'Y' initializerr.go:16:10: error: too many values in struct composite literal initializerr.go:18:19: error: index expression is not integer constant initializerr.go:17:11: error: too many elements in composite literal R=rsc DELTA=12 (0 added, 0 deleted, 12 changed) OCL=29657 CL=29665
2009-05-21stricter rules for assignment.Russ Cox1-0/+33
when assigning a multifield object (structs or arrays of structs) they must not contain any fields that could not be assigned individually. R=ken OCL=29192 CL=29194