class Foo {
  val x = "hello"
  val fun1: Int => Int = n => 0 + n + list.size
  val fun2: Int => Int = n => 1 + n + list.size
  fun2(5)

  List(5, 9).map(n => 2 + n + list.size)         // error

  final val list = List(1, 2, 3)                 // error

  List(5, 9).map(n => 3 + n + list.size)
}
class Foo {
  val x = "hello"
  val fun1: Int => Int = n => 0 + n + list.size
  val fun2: Int => Int = n => 1 + n + list.size
  fun2(5)

  List(5, 9).map(n => 2 + n + list.size)

  final val list = List(1, 2, 3)                 // error

  List(5, 9).map(n => 3 + n + list.size)
}
--- 
+++ 
@@ -4,7 +4,7 @@
   val fun2: Int => Int = n => 1 + n + list.size
   fun2(5)
 
-  List(5, 9).map(n => 2 + n + list.size)
+  List(5, 9).map(n => 2 + n + list.size)         // error
 
   final val list = List(1, 2, 3)                 // error
 
Fix test: previous we only report 1 error
