Well this confused the crap out of me: <https://yo...
# intellij
k
Interesting. It also happens on my current version, 2024.3.6. Here's a slightly shorter reproducible example:
Copy code
import io.kotest.core.spec.style.StringSpec

class ProblemSpec : StringSpec({

    val params = object {}

    "no compile error in K2 mode" {
        val latch  = NoSuchClass()
    }
})
Another even more minimal example:
Copy code
import io.kotest.core.spec.style.StringSpec

class ProblemSpec : StringSpec({
    val params = object {}
    val latch = NoSuchClass()
})
👍 1