These work in Swift without much problem but apparently aren’t allowed in Kotlin. I guess years ago there was some problem with implementing them. Has anything changed?
They seem useful for simplifying and not repeating long-winded generic or function types inside a class/object implementation.
class Foo<T> {
typealias Formatter = (Int, String) -> String
typealias MyMap = HashMap<String, List<T>>
...