Currently this
is not defined in class parameter lists. I’d like to use this
like this:
abstract class Tag(repr: String = this.javaClass.simpleName)
I can workaround this limitation:
abstract class Tag(repr: String? = null) {
val repr: String = repr ?: this.javaClass.simpleName
}
However I’d prefer the first way. Would it be possible to allow it in future Kotlin versions?