aboutsummaryrefslogtreecommitdiff
path: root/tests/pos/overrides.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-11-14 16:05:18 +0100
committerMartin Odersky <odersky@gmail.com>2014-11-14 16:05:18 +0100
commit9dae49b8994f72f2b4b83665c53a63b49896c5de (patch)
treee07c0ac849b731699c06ddce08cad6f486175945 /tests/pos/overrides.scala
parentc7f824198352e0740a979a8022afc1a6e128dd1c (diff)
downloaddotty-9dae49b8994f72f2b4b83665c53a63b49896c5de.tar.gz
dotty-9dae49b8994f72f2b4b83665c53a63b49896c5de.tar.bz2
dotty-9dae49b8994f72f2b4b83665c53a63b49896c5de.zip
Refine merge of nullary and parameterless denotations.
Previously, two denotations with types => T and ()T could not be merged, only their types could be, but then the denotation would no longer be a SymDenotation. We now treat the two types as equivalent so that it will select the symbol in a subclass. This fixes a problem where, once overrding pairs are made to work (see following commit), in core/Types we get an error "overriding final method "hashCode".
Diffstat (limited to 'tests/pos/overrides.scala')
0 files changed, 0 insertions, 0 deletions