https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
r

ribesg

08/27/2019, 1:02 PM
I have a class in my
commonMain
module and 2 extension functions in my
androidMain
and
jvmMain
modules which happen to have the same prototype. IntelliJ is complaining in the
androidMain
module when I use this extension that it doesn’t know which one to use because it’s defined twice. The problem doesn’t occur in
jvmMain
and everything compiles fine, it’s IntelliJ being lost I suppose
j

Jan Stoltman

08/27/2019, 1:15 PM
Doesn't your
androidMain
by any chance depend on
jvmMain
?
r

ribesg

08/27/2019, 1:28 PM
Well I didn’t do anything for that to happen and I don’t think it does that by default, unless it’s new. Also, it would not compile with Gradle if that was the case. Here it’s only IntelliJ that sees this “error”
s

Sebastian Sellmair [JB]

08/27/2019, 1:42 PM
I think there is a ticket for this. I'll try to find this for you ☺️