Kotlin incorrectly detects Java String vararg as String type


#1

Where classes is defined as vararg classes: String and the super-constructor being called has the signature: UIOxygenIndicator(OxygenHandler, String, String…)


#2

You need to write *classes rather than classes. The latter will be interpreted as an attempt to pass a single vararg element (a String).


#3

Aha, that fixed it. Thanks!