andylamax
12/26/2020, 7:41 PMNoSuchMethod
in jvm runtime.
It is multiplatform code that executes well in kotlin/js browser, but fails in jvm
implementation looks something like this
// in submodule common
interface ICommon
fun ICommon.greet(greeting: String, name: String)
// in submodule client
which depends on common
interface IClient : ICommon
class ClientImpl(): IClient
// my tests in submodule client
class
ClientImpl().greet("Hello","World");
Passes on js/browser, fails on jvm
using IR for both JVM and JSandylamax
12/26/2020, 8:40 PMClientImpl().greet("Hello","World")
, I wrote (ClientImpl() as ICommon).greet("Hello","World")
Compiled and it worked. I then got rid of the casting, and it still workscy
12/27/2020, 6:47 AMandylamax
12/27/2020, 10:04 AM