I understand mocking inline functions is not doabl...
# mockk
j
I understand mocking inline functions is not doable (https://github.com/mockk/mockk/issues/55 & https://github.com/mockk/mockk/issues/27). But would it be possible to get a better error message? Or even a compile time exception? I just spent 30 minutes trying to debug this stack trace before realizing it was an issue with inline functions
Copy code
java.lang.AbstractMethodError: kotlin.jvm.functions.Function1$Subclass4.invoke(Ljava/lang/Object;)Ljava/lang/Object;

	at com.company.myTest$test$1$1.invokeSuspend(MyTest.kt:92)
	at com.company.myTest$test$1$1.invoke(MyTest.kt)
	at io.mockk.impl.eval.RecordedBlockEvaluator$record$block$2$1.invokeSuspend(RecordedBlockEvaluator.kt:26)
	at io.mockk.impl.eval.RecordedBlockEvaluator$record$block$2$1.invoke(RecordedBlockEvaluator.kt)
	at io.mockk.InternalPlatformDsl$runCoroutine$1.invokeSuspend(InternalPlatformDsl.kt:20)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:32)
	at kotlinx.coroutines.DispatchedTask.run(Dispatched.kt:233)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.kt:116)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:76)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:53)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:35)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at io.mockk.InternalPlatformDsl.runCoroutine(InternalPlatformDsl.kt:19)
	...