summaryrefslogtreecommitdiff
path: root/test/files/neg/t5120.check
blob: b6a3cb96aa18b49137c2eb9248365126cb381b03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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)  _1
  List(str, num).foreach(h => h.f1 = new Thread())
                                     ^
two errors found