Source file src/internal/types/testdata/fixedbugs/issue52401.go

     1  // Copyright 2022 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  package p
     6  
     7  func _() {
     8  	const x = 0
     9  	x /* ERROR "cannot assign to x" */ += 1
    10  	x /* ERROR "cannot assign to x" */ ++
    11  }
    12  

View as plain text