| 1 |
// Copyright 2026 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 |
package aliases |
| 6 |
|
| 7 |
type AByte = byte |
| 8 |
type AByteSlice = []AByte |
| 9 |
type S struct{} |
| 10 |
type AStruct = S |
| 11 |
type AStructPtr = *AStruct |
| 12 |
|
| 13 |
func TakesAByte(a AByte) {} |
| 14 |
func TakesAByteSlice(a []AByte) {} |
| 15 |
func TakesAByteSliceAlias(a AByteSlice) {} |
| 16 |
func TakesAStructPtr(a *AStruct) {} |
| 17 |
func TakesAStructPtrAlias(a AStructPtr) {} |