tipsy
08/12/2020, 12:44 PMclass MyClass(val arg1: String, val arg2: String? = null)
(making it generate two constructors)diesieben07
08/12/2020, 12:46 PMtipsy
08/12/2020, 12:48 PMThis annotation is not applicable to target 'class'
tipsy
08/12/2020, 12:49 PMdiesieben07
08/12/2020, 12:51 PMclass MyClass @JvmOverloads constructor(...)
diesieben07
08/12/2020, 12:52 PMtipsy
08/12/2020, 12:53 PMtipsy
08/12/2020, 12:53 PMtipsy
08/12/2020, 12:53 PMJoost Klitsie
08/12/2020, 1:50 PMnanodeath
08/12/2020, 2:47 PMconstructor
like that) but it is documented here:
• https://kotlinlang.org/docs/reference/annotations.html#usage
• https://kotlinlang.org/docs/reference/classes.html#constructors