https://codereview.appspot.com/6594054/diff/7001/src/pkg/exp/types/staging/expr.go File src/pkg/exp/types/staging/expr.go (right): https://codereview.appspot.com/6594054/diff/7001/src/pkg/exp/types/staging/expr.go#newcode116 src/pkg/exp/types/staging/expr.go:116: check.invalidOp(x.pos(), "operator %s not defined for %s", op, x) ...
12 years, 10 months ago
(2012-10-08 00:19:45 UTC)
#4
https://codereview.appspot.com/6594054/diff/7001/src/pkg/exp/types/staging/ex...
File src/pkg/exp/types/staging/expr.go (right):
https://codereview.appspot.com/6594054/diff/7001/src/pkg/exp/types/staging/ex...
src/pkg/exp/types/staging/expr.go:116: check.invalidOp(x.pos(), "operator %s not
defined for %s", op, x)
On 2012/10/06 22:43:20, rsc wrote:
> This is a vague error message for the specific case of receiving from a
> send-only channel. I would suggest giving a more specific error, either by
> leaving that for a higher-level pass, or by handling it specially here. <-c is
> certainly defined in that case, it's just not allowed.
>
Added TODO.
*** Submitted as http://code.google.com/p/go/source/detail?r=0a11e5a60d9c *** /exp/types/staging: expression and statement type checking Still lots of pieces ...
12 years, 10 months ago
(2012-10-08 01:01:52 UTC)
#5
Issue 6594054: code review 6594054: /exp/types/staging: expression and statement type checking
(Closed)
Created 12 years, 10 months ago by gri
Modified 12 years, 10 months ago
Reviewers:
Base URL:
Comments: 12