Is it possible to define a type with typealias whi...
# announcements
r
Is it possible to define a type with typealias which implements multiple interfaces? something like typalias Person = CanBeNice & CanBeMean
t
it is not. would be an awesome feature but is hard to represent on the jvm
r
hm... Java supports it in conjunction with type parameters.
t
yea it isn’t impossible to hack by using generic type intersection but that can get messy really fast.