Hey all, quick question about `kotlin.Result` usag...
# multiplatform
r
Hey all, quick question about
kotlin.Result
usage in KMP. trying to use it as a return type by using this in my
:shared
KMP module's build file
Copy code
kotlin {
    targets.all {
        compilations.all {
            kotlinOptions {
                freeCompilerArgs = freeCompilerArgs + "-Xallow-result-return-type"
            }
        }
    }

    // other source sets and targets here...
}
I can build and run my apps just fine but the IDE is still highlighting that Result cannot be used as a return type. Anyone know if this is an IDE issue or I just didn't configure the build file correctly?
k
try running a gradle sync just to be sure. it might not understand that compiler arg.
r
first thing i tried, but no dice 😕
l
This should not be needed anymore in Kotlin 1.5
🙏 1