https://kotlinlang.org logo
#announcements
Title
# announcements
r

robstoll

04/17/2017, 5:22 PM
Is it possible to define a type with typealias which implements multiple interfaces? something like typalias Person = CanBeNice & CanBeMean
t

trevjones

04/17/2017, 5:33 PM
it is not. would be an awesome feature but is hard to represent on the jvm
r

robstoll

04/17/2017, 5:34 PM
hm... Java supports it in conjunction with type parameters.
t

trevjones

04/17/2017, 5:37 PM
yea it isn’t impossible to hack by using generic type intersection but that can get messy really fast.
2 Views