...

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

Documentation: internal/types/testdata/check

     1  // -lang=go1.21
     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 file versions below go1.21 set the langage version to go1.21 */)
    18  

View as plain text