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

niqo01

11/25/2019, 11:04 PM
I would expect those kind of issues to be caught at compile time.
r

russhwolf

11/25/2019, 11:50 PM
I think you'll catch it at compile-time if you build JS
k

kpgalligan

11/26/2019, 12:42 AM
Kind of surprised it compiled. Certainly would expect Intellij to complain
r

russhwolf

11/26/2019, 4:13 AM
The IDE redlines it but gradle will let it through. I don’t really know what’s happening under the hood but the sense I get based on how it behaves is that when combining sources, the build process just cares about matching `expect`/`actual` and doesn’t pay attention to where dependencies come from. Then by the time it’s actually compiling, it has a target platform and no longer cares that the JVM dependency it’s pulling in was written into a common source file.
Letting this kind of thing through is also what lets you do things like shared native sourcesets.
e

epabst

12/29/2019, 5:36 AM
I like this behavior.