It won’t be that easy with main target, but warming up was no so bad — I added aliases in about an hour or so. Currently only fields in given class can be aliased, but it is enough for the purpose of having generics implemented.
class Foo var mine Int = 5; alias other mine; func main() @Int do return other; end end
In target code “other
” completely vanishes — it takes no space, it is just what the name says, an alias.