summaryrefslogblamecommitdiff
path: root/test/files/neg/t5120.check
blob: fc65ca16a5f79e711c66c5fc05cbfa1b902659e9 (plain) (tree)
1
2
3
4
5
6
7
8
9
10



                                                
                                          




                                                  
                                          
                
t5120.scala:11: error: type mismatch;
 found   : Object
 required: _1
    List(str, other) foreach (_.x1 = new AnyRef)
                                         ^
t5120.scala:25: error: type mismatch;
 found   : Thread
 required: h.T
    (which expands to)  _2
  List(str, num).foreach(h => h.f1 = new Thread())
                                         ^
two errors found