Query: using version 1.5.20 of: kotlin: en: androi...
# announcements
m
Query: using version 1.5.20 of: kotlin: en: android-studio: after creating a function that returns a Flow <T>, the compiler of: kotlin: shows me an error of this type: Unbound private symbol org.jetbrains.kotlin.ir.symbols.impl.IrClassSymbolImpl@5b1e156e (NON-PUBLIC API): <ERROR CLASS> ... According to this note in the jetbrains bugtracker (https://youtrack.jetbrains.com/issue/KT-46726) it is understood that it is because of the lambda where the flows are created, but I could doubt it because it already had lambdas and builders that return a flow and that did not happen: cry :. The function I added was the following:
Copy code
suspend fun findBook (isbn: String): Flow <Result <BookDetailApiResponse>> = flow {
 val apiResult: Result <BookDetailApiResponse> = try {
  val foundBook = bookStoreApi.getBookDetail (isbn)
  if (foundBook.error == "0") Result.success (foundBook)
   else Result.failure (Exception (errorMessage))
 } catch (exception: Exception) {
  Result.failure (Exception (errorMessage, exception))
 }
 emit (apiResult)
}
In StackOverflow I put the concern, pos already went beyond the flow <T> function that I created, since in the error trace it does not indicate anything but the internal compiler. https://stackoverflow.com/.../android-studio-error-while... Thanks in advance.