test/fixedbugs/issue24173.go
raw| 1 | // compile |
| 2 | |
| 3 | // Copyright 2018 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 | package p |
| 8 | |
| 9 | type arrayAlias = [10]int |
| 10 | type mapAlias = map[int]int |
| 11 | type sliceAlias = []int |
| 12 | type structAlias = struct{} |
| 13 | |
| 14 | func Exported() { |
| 15 | _ = arrayAlias{} |
| 16 | _ = mapAlias{} |
| 17 | _ = sliceAlias{} |
| 18 | _ = structAlias{} |
| 19 | } |