summaryrefslogblamecommitdiff
path: root/test/files/neg/t4196.scala
blob: ac00b19bee8c204cde40ebeba378f46b32e90848 (plain) (tree)
1
2
3
4
5
6
              
                   
                                                                            
          

                                           
object Weird {
  { (s: String) => 
      val foo = Some(s); // to illustrate that vals are printed in the error
      foo 
  }.apply("first param") ("spurious param")
}