rtsketo
06/09/2021, 12:56 PMconstructor(aList : List<A>) /* Main constructor */
constructor(bList : List<B>) : this (bList.toListA())
I get the following:
Platform declaration clash: The following declarations have the same JVM signature ((Ljava/util/List;)V):
How do I distinguish between them?mkrussel
06/09/2021, 1:03 PMrtsketo
06/09/2021, 1:07 PMinvoke
operator.
Still... it kind of feels like a hack to me. Pretty weird Kotlin doesn't offer a better solution.CLOVIS
06/09/2021, 1:13 PMList
factory in the standard library)ephemient
06/09/2021, 2:41 PMDominaezzz
06/09/2021, 4:17 PMy9san9
06/09/2021, 4:38 PMfunction name
warning in case if such functions have the same return type as its name.CLOVIS
06/09/2021, 7:37 PMimport static
it. Honestly though, you shouldn't architecture your code just so you have a specific icon on your screen, especially when that stops you from using one of the most important features of the languagertsketo
06/09/2021, 7:54 PM