]> Cypherpunks repositories - gostls13.git/commit
6g: error messages
authorRuss Cox <rsc@golang.org>
Thu, 7 May 2009 17:29:35 +0000 (10:29 -0700)
committerRuss Cox <rsc@golang.org>
Thu, 7 May 2009 17:29:35 +0000 (10:29 -0700)
commitb5e212ffddff2f9b5a6d3779d4f6bd35fd2d2b02
tree1aba55c652508383c1eb7589c533aafac87c3824
parent5a67ea3883fcdf493c9d96adfe4b72ee5a892a7b
6g: error messages

replace "shape error across CALL" with more information.

x.go:7: not enough arguments to CALL
a int, b int
int
x.go:10: assignment count mismatch: 3 = 2
x.go:12: too many arguments to RETURN
[no arguments expected]
int, int, int

also leave type alone after conversion failure,
for later errors:

bug049.go:6: cannot convert nil constant to string
bug049.go:6: illegal types for operand: EQ
string
nil # this used to be blank

R=ken
OCL=28405
CL=28407
src/cmd/gc/const.c
src/cmd/gc/walk.c
test/golden.out