diff options
author | Martin Odersky <odersky@gmail.com> | 2016-01-18 18:40:11 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-02-19 14:00:55 +0100 |
commit | 6ee8569e6bf14412dc924fe1379a544f263397ed (patch) | |
tree | ab4136a1b5174e5d557fa790c051cfaa86638922 /src/dotty/tools/dotc/core/SymDenotations.scala | |
parent | a553296a6d32e062eed498241ae99bcc61c58529 (diff) | |
download | dotty-6ee8569e6bf14412dc924fe1379a544f263397ed.tar.gz dotty-6ee8569e6bf14412dc924fe1379a544f263397ed.tar.bz2 dotty-6ee8569e6bf14412dc924fe1379a544f263397ed.zip |
Fix problem of overloading resolution when receiver is not stable.
Diffstat (limited to 'src/dotty/tools/dotc/core/SymDenotations.scala')
-rw-r--r-- | src/dotty/tools/dotc/core/SymDenotations.scala | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/core/SymDenotations.scala b/src/dotty/tools/dotc/core/SymDenotations.scala index 88af3886d..bde8cc10a 100644 --- a/src/dotty/tools/dotc/core/SymDenotations.scala +++ b/src/dotty/tools/dotc/core/SymDenotations.scala @@ -1526,10 +1526,7 @@ object SymDenotations { val decls1 = newScope for (tparam <- tparams) decls1.enter(decls.lookup(tparam.name)) for (sym <- decls) if (!typeParams.contains(sym)) decls1.enter(sym) - val ci = classInfo - // dotty deviation; overloading resolution on next line fails if prefix `ci` is not a value. - // See test pending/pos/overloaddefault.scala - info = ci.derivedClassInfo(decls = decls1) + info = classInfo.derivedClassInfo(decls = decls1) myTypeParams = null } |