Ryan Simon
04/16/2021, 8:45 PMkotlin.Result
usage in KMP. trying to use it as a return type by using this in my :shared
KMP module's build file
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?Kris Wong
04/16/2021, 8:46 PMRyan Simon
04/16/2021, 8:48 PMlouiscad
04/17/2021, 11:59 AM