Skip to content

Commit ed832ed

Browse files
rscgopherbot
authored andcommitted
go/types: add test case for CL 486398
Forgot to 'git add' this test case in the CL. Change-Id: Idde1d3d4525a99bdab0d3d69ac635a96a7cd5d73 Reviewed-on: https://go-review.googlesource.com/c/go/+/487335 Auto-Submit: Russ Cox <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Run-TryBot: Russ Cox <[email protected]> Reviewed-by: Robert Findley <[email protected]>
1 parent 19d5c40 commit ed832ed

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
// Check Go language version-specific errors.
6+
7+
//go:build go1.19
8+
9+
package p
10+
11+
type Slice []byte
12+
type Array [8]byte
13+
14+
var s Slice
15+
var p = (Array)(s /* ok because Go 1.X prior to Go 1.21 ignored the //go:build go1.19 */)

0 commit comments

Comments
 (0)