mirror of
https://github.com/golang/go
synced 2024-11-22 23:50:03 -07:00
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 <rsc@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Russ Cox <rsc@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
This commit is contained in:
parent
19d5c40618
commit
ed832ed353
15
src/internal/types/testdata/check/go1_xx_19.go
vendored
Normal file
15
src/internal/types/testdata/check/go1_xx_19.go
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
// Copyright 2022 The Go Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
// Check Go language version-specific errors.
|
||||
|
||||
//go:build go1.19
|
||||
|
||||
package p
|
||||
|
||||
type Slice []byte
|
||||
type Array [8]byte
|
||||
|
||||
var s Slice
|
||||
var p = (Array)(s /* ok because Go 1.X prior to Go 1.21 ignored the //go:build go1.19 */)
|
Loading…
Reference in New Issue
Block a user