Where classes
is defined as vararg classes: String
and the super-constructor being called has the signature: UIOxygenIndicator(OxygenHandler, String, String…)
You need to write *classes
rather than classes
. The latter will be interpreted as an attempt to pass a single vararg element (a String
).
Aha, that fixed it. Thanks!