3 // Copyright 2010 The Go Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
7 // This is a test case for issue 804.
18 f()[1] = 2 // ERROR "cannot|invalid"
19 f()[2:3][0] = 4 // ERROR "cannot|addressable"
21 x[2] = 3 // ERROR "cannot|invalid"
22 m[0][5] = 6 // ERROR "cannot|invalid"