• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4
5// Test cases for go.dev/issue/31092: Better synchronization of
6// parser after seeing an := rather than an = in a const,
7// type, or variable declaration.
8
9package p
10
11const _ /* ERROR unexpected := */ := 0
12type _ /* ERROR unexpected := */ := int
13var _ /* ERROR unexpected := */ := 0
14
15const _ int /* ERROR unexpected := */ := 0
16var _ int /* ERROR unexpected := */ := 0
17