Smallville7123
04/18/2019, 2:25 PMjava.lang.ClassFormatError: Duplicate method name&signature in class file FileKt
in https://pl.kotl.in/tLfGFlvkuRuckus
04/18/2019, 2:28 PMString.toStringBuilder()
and Sting?.toStringBuilder()
have the same signature.Smallville7123
04/18/2019, 2:29 PMRuckus
04/18/2019, 2:29 PMSmallville7123
04/18/2019, 2:30 PMRuckus
04/18/2019, 2:30 PM@JvmName("toStringBuilderOrNull")
fun String?.toStringBuilder()...
Smallville7123
04/18/2019, 2:30 PMRuckus
04/18/2019, 2:30 PMRuckus
04/18/2019, 2:31 PMmyString?.toStringBuilder()
and the usage makes it clear what the expected result is.Smallville7123
04/18/2019, 2:33 PMRuckus
04/18/2019, 2:33 PMfun String?.toStringBuilder() = this?.toStringBuilder()
you might as well just use it that way. No reason to define an extra function to save 1 character.Ruckus
04/18/2019, 2:34 PMSmallville7123
04/18/2019, 3:17 PMSmallville7123
04/18/2019, 3:18 PM?
to access it lol