Hey folks, is this expected that importing `import...
# multiplatform
n
Hey folks, is this expected that importing
import kotlin.test.Test
is highlighted red in the IDE when the test is located in the
commontTest
source set? Gradle build doesn’t fail, seems like an IDE issue.
k
no, it's not
and I don't experience the same. maybe reimport your build files?
n
already did 🤔
thanks for chiming in btw!
b
I had the same issue in the past, and it was because I was actually importing that class from a library that had itself imported it.
I fixed it by importing that library directly:
Copy code
implementation "org.jetbrains.kotlin:kotlin-test-common:$kotlin_version"
                implementation "org.jetbrains.kotlin:kotlin-test-annotations-common:$kotlin_version"
n
@baxter that was exactly it! Thanks a lot!
🎉 1