<@UE3D4UE15> This works on <https://try.arrow-kt.i...
# arrow
r
@Bob Glamm This works on https://try.arrow-kt.io:80
Copy code
import arrow.core.Some
import arrow.core.None

val remoteInput = Some("blue")
        .flatMap { if(it.isNullOrBlank()) None else Some(it.trim()) }
        .map { it.toLowerCase() }
    
val vi = remoteInput.toEither { Exception("No valid input") }

fun main(args: Array<String>) {
    println(remoteInput)
    println(vi)
}
This is most likely a JDK bug or Kotlin compiler bug in codegen. Do you have a full example including imports?