blob: 6e798d1d0c8e2dd7370416750e2fc5764346a9e9 [file] [log] [blame]
Dan Willemsencc753b72021-08-31 13:25:42 -07001// Copyright 2021 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
Dan Willemsenbc60c3c2021-12-15 01:09:00 -08005package a
Dan Willemsencc753b72021-08-31 13:25:42 -07006
Dan Willemsenbc60c3c2021-12-15 01:09:00 -08007type MyInt int
Dan Willemsencc753b72021-08-31 13:25:42 -07008
Dan Willemsenbc60c3c2021-12-15 01:09:00 -08009type MyIntAlias = MyInt
10
11func (mia *MyIntAlias) Get() int {
12 return int(*mia)
Dan Willemsencc753b72021-08-31 13:25:42 -070013}