mirror of
https://github.com/golang/go
synced 2024-11-06 01:36:10 -07:00
79619c3c7e
Change-Id: I7da79d52d50d96536a8175ba08e9da551d07fadd Reviewed-on: https://go-review.googlesource.com/c/go/+/398094 Trust: Matthew Dempsky <mdempsky@google.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Robert Griesemer <gri@golang.org> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org>
16 lines
257 B
Go
16 lines
257 B
Go
// compile
|
|
|
|
// 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.
|
|
|
|
package p
|
|
|
|
type I interface{ any | int }
|
|
|
|
var (
|
|
X I = 42
|
|
Y I = "xxx"
|
|
Z I = true
|
|
)
|