Dico
01/13/2019, 9:09 PMnull
. Good catchDico
01/13/2019, 9:11 PMDico
01/13/2019, 9:12 PMitnoles
01/13/2019, 9:18 PMnerdstone
01/14/2019, 7:19 AMpoohbar
08/26/2020, 2:52 PMinterface Animal<T : Animal<T>> {
val id: String
fun withSound(sound: String): T
}
data class Dog(
override val id: String
) : Animal<Dog> {
// does not work
override fun withSound(sound: String): Dog {
TODO("Not yet implemented")
}
}
Michael
08/26/2020, 3:07 PMMichael
08/26/2020, 3:08 PMpoohbar
08/26/2020, 3:12 PMpoohbar
08/26/2020, 3:12 PMPetter Måhlén
08/26/2020, 3:19 PMAnimal
interface states that ‘all animals need to be able to supply any animal, given some sound’. I think what you want to say is that ‘all animals can be configured with a sound’? or is it ‘all animals can be transformed into another animal if they are given a sound’? i think that there’s something not completely right about the model you’re using, but it’s hard to tell without a bit more background about what problem you’re trying to solvepoohbar
08/26/2020, 3:22 PMGayan Perera
08/26/2020, 4:49 PMuser
08/27/2020, 12:03 PMSettingdust
08/27/2020, 12:43 PMkotlin-stdlib-jdk8
and kotlin-reflect
.Settingdust
08/27/2020, 12:45 PMjava.lang.AssertionError: Built-in class Shadow.runtime.kotlin.Any is not found
when relocate("kotlin", "$group.runtime.kotlin")
Settingdust
08/27/2020, 12:51 PMjava.lang.ClassCastException: Shadow.runtime.kotlin.jvm.internal.ClassReference cannot be cast to kotlin.reflect.jvm.internal.KClassImpl
when
relocate("kotlin", "$group.runtime.kotlin") {
exclude("kotlin.reflect.**")
}
user
08/27/2020, 1:05 PMuser
08/27/2020, 1:07 PMelect
08/27/2020, 7:56 PMNiranjan Kurve
08/28/2020, 10:34 AMMarian Schubert
08/28/2020, 4:03 PMw: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
/home/maio/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-reflect/1.4.0/aa2101a19d8688e368ae6e35e8967550ced73884/kotlin-reflect-1.4.0.jar (version 1.4)
/home/maio/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.4.0/e3765b66f0610afc92053ff1a93a87a544fca2b/kotlin-stdlib-jdk8-1.4.0.jar (version 1.4)
/home/maio/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.3.72/3adfc2f4ea4243e01204be8081fe63bde6b12815/kotlin-stdlib-jdk7-1.3.72.jar (version 1.3)
/home/maio/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.3.72/8032138f12c0180bc4e51fe139d4c52b46db6109/kotlin-stdlib-1.3.72.jar (version 1.3)
/home/maio/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.3.72/6ca8bee3d88957eaaaef077c41c908c9940492d8/kotlin-stdlib-common-1.3.72.jar (version 1.3)
Any idea why this may happen?
Posted in #gradleBapi Das
08/29/2020, 7:18 PMFabian Landis
08/30/2020, 9:37 PMVinod Rai
08/31/2020, 9:37 AMaddamsson
08/31/2020, 9:48 AMKarlo Lozovina
08/31/2020, 11:25 AMuser
08/31/2020, 4:43 PMuser
09/01/2020, 1:43 PM