Remove obsolete assignment bcheck special case

This commit is contained in:
Nigel Tao committed 2018-07-07 18:17:10 +10:00
1 parent ba3b97ec69
commit e0cbd2a69e
1 file changed
-10
-10
View File
@@ -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
}