...

Source file src/internal/types/testdata/check/go1_20_19.go

Documentation: internal/types/testdata/check

     1  // -lang=go1.20
     2  
     3  // Copyright 2022 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.
     6  
     7  // Check Go language version-specific errors.
     8  
     9  //go:build go1.19
    10  
    11  package p
    12  
    13  type Slice []byte
    14  type Array [8]byte
    15  
    16  var s Slice
    17  var p = (Array)(s /* ok because Go 1.20 ignored the //go:build go1.19 */)
    18  

View as plain text