summaryrefslogtreecommitdiff
path: root/test/files/pos/t6367.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix for SI-6367, exponential time in inference.Paul Phillips2012-09-121-0/+34
This pathology is not new - it can be witnessed in 2.9, where compiling the test case enclosed with this ticket with -Yinfer-debug will print a line with (pinky to lips) one million type parameters. 1048576 actually, aka 2^20. But in 2.9 we were somehow getting away with creating the list, presumably by not spending much time looking at it. Somewhere between there and M1, that changed. I cut it off at the knees - don't create a list of one million upper bound constraints when 1 will suffice. It would not be too surprising if this proves to be a boon for performance.