Problem with ctrl-q in for construct


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) {

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:

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

Thanks, Nick.

1 comment

Please sign in to leave a comment.