summaryrefslogblamecommitdiff
path: root/test/files/neg/t2031.check
blob: 74aa6c9c0b1ce8f2990d5e7279efdd838e33059b (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.CanBuildFrom[scala.collection.immutable.TreeSet[Int],Int,?]
 res0.map(x => x)(TreeSet.newBuilder)
                          ^
one error found