Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Monitor Alias Experiment #27
An alias declaration binds an identifier, the alias, to a constant, type, variable, or function denoted by a qualified identifier and declared in a different package.
The effect of referring to a constant, type, variable, or function by an alias is indistinguishable from referring to it by its original name. For example, the type denoted by a type alias and the aliased type are identical.
An alias declaration may appear only as a form of constant, type, variable, or function declaration at the package level, and the aliased entity must be a constant, type, variable, or function respectively. Alias declarations inside functions are not permitted.
An alias declaration may not refer to package unsafe.