I load source into compiler with askReload, and then i try to call askTypeCompletion after . (dot). Completion in first case (method with 2 arguments) is not working, but completion in method call with one arg works as expected.
val list = Seq(1,2)
def add(x: Int, y: Int): Int = x + y
def minusOne(x: Int) = x - 1
add(list.<completion is not working)
minusOne(list.<works fine>)
what's interesting is if i have code:
implicit class OptionW[T](opt: Option[T]) {
def cata[A](some: T => A, none: A) = opt.map(some) getOrElse none
}
Option("").cata(x => x.<not working>)
completion after dot is not working again, but if i type comma after dot and then try again to complete after dot, it works: Option("").cata(x => x.<works!>,)
Is it some bug or expected behaviour?