aliased annotation

The aliased annotation documents alternative names for a declaration.


The annotation accepts a list of alternative names for the declaration.

Integer magnitude(Integer n) {
    return if (n >= 0) then n else -n;


The aliased annotation is processed by the ceylon doc tool. It should also be used by IDEs so that features such as autocomplete can find the declaration by any of its alternative names in addition to the declaration name.

See also