summaryrefslogblamecommitdiff
path: root/test/files/neg/t2494.check
blob: 6d43011e248e0594e68108364d3e183048323c7c (plain) (tree)
1
2
3
4



                                                  
t2494.scala:1: error: recursive value a needs type
object A { val a = { println("a = " + a); a = 1} }
                                      ^
one error found