1 // Copyright 2018 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // Test case for issue 23434: Better synchronization of
6 // parser after missing type. There should be exactly
7 // one error each time, with now follow errors.
11 type T /* ERROR unexpected newline */
13 type Map map[int] /* ERROR unexpected newline */
15 // Examples from #23434:
18 m := make(map[string] /* ERROR unexpected ! */ !)
26 m := make(map[string] /* ERROR unexpected \) */ )