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

     1  // Copyright 2026 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  // We should get at most one error per line.
     8  
     9  var s int
    10  var _ int8 = ( /* ERROR "overflows" */ 1000)
    11  var _ int8 = (1000 /* ERROR "overflows int8" */ ) << s
    12  var _ int8 = ((1000 /* ERROR "overflows int8" */ )) << s
    13  var _ int8 = (((1000 /* ERROR "overflows int8" */ ))) << s
    14  

View as plain text