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

     1  // -lang=go1.19
     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.20
    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 */)
    18  

View as plain text