From e0cbd2a69e392edc3a41d258732621e94f6c6d46 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Sat, 7 Jul 2018 18:17:10 +1000 Subject: [PATCH] Remove obsolete assignment bcheck special case --- lang/check/bounds.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lang/check/bounds.go b/lang/check/bounds.go index d0a25e8d..2681c65b 100644 --- a/lang/check/bounds.go +++ b/lang/check/bounds.go @@ -416,16 +416,6 @@ func (q *checker) bcheckAssignment(lhs *a.Expr, op t.ID, rhs *a.Expr) error { } func (q *checker) bcheckAssignment1(lhs *a.Expr, op t.ID, rhs *a.Expr) error { - switch lhs.MType().Decorator() { - case t.IDPtr: - // TODO: handle. - return nil - case t.IDArray: - // TODO: handle. - return nil - // TODO: t.IDSlice, t.IDTable? - } - if _, err := q.bcheckExpr(lhs, 0); err != nil { return err }