https://kotlinlang.org logo
#getting-started
Title
# getting-started
l

Luis Mirabal

02/26/2017, 2:00 AM
I’m trying to define a class hierarchy where the base class has a vararg property. It doesn’t seem to allow me to have a sub class with a vararg param like:
Copy code
abstract class BaseClass(vararg val param: String) {}

class SubClass(vararg param : String) : BaseClass(param)