Problem with ctrl-q in for construct

Hi.

With the following code:

object ForTest {
  def main(args: Array[String]) {
    case class Test(string:String)
    val list = List(Test("1"),Test("2"),Test(3))
    for (value <- list) {
      value.string
    }
  }
}

When I do a ctrl-q on the "value" fields highlighted, I would expect it to say it was a val of type Test but it says:

ForTest
def main(args: Array[String]): Unit

Thanks, Nick.

Please sign in to leave a comment.