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



                                                                                                 
t2031.scala:8: error: polymorphic expression cannot be instantiated to expected type;
 found   : [A]scala.collection.mutable.Builder[A,scala.collection.immutable.TreeSet[A]]
 required: scala.collection.generic.BuilderFactory[Int,?,scala.collection.immutable.TreeSet[Int]]
 res0.map(x => x)(TreeSet.newBuilder)
                          ^
one error found