Luka Štorek
05/23/2024, 9:14 AMkotlin.reflect.jvm.internal.KotlinReflectionInternalError: Unresolved class:
For example this is unit test:
@Test
fun `on load success`() = gherkin {
Given("load returns onLoad") {
every { mockLoader.load(onLoad = capture(slotOnLoad)) } answers { slotOnLoad.captured.invoke() }
}
When("load is triggered") {
mockLoader.loadBubble()
}
Then("verify ") {
verify {
//Method
}
}
}
So i am suspecting this change: https://kotlinlang.org/docs/whatsnew20.html#generation-of-lambda-functions-using-invokedynamic
Where my load method is like this:
fun load(
onLoad: () -> Unit = {},
onFail: () -> Unit = {},
)
Am i supposed to annotate this like it says or should i rewrite this somehow 🤔 ?