summaryrefslogtreecommitdiff
path: root/test/files/neg/t963.scala
Commit message (Collapse)AuthorAgeFilesLines
* Fix for one of the oldest open soundness bugs.Paul Phillips2012-05-041-0/+18
Closes SI-963, since it was one of my random 30 it won the prize. The trick after adding the stability check (which has been sitting there commented out for 3+ years) was that implicit search depended on the wrongness, because memberWildcardType would create scopes with members of the form ?{ val name: tp } And since a def shouldn't match that, fixing it broke everything until I flipped it around: memberWildcardType should be seeking ?{ def name: tp } It could also search for a mutable value: the relevant quality is that it not be stable so it doesn't have a tighter type than the members it hopes to match.