diff options
author | Martin Odersky <odersky@gmail.com> | 2016-06-29 19:01:12 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2016-07-11 13:34:58 +0200 |
commit | d30f441ae986c144e739223be97b906b3bbd43dc (patch) | |
tree | b7ba96597290a345dd9a92e3e0275f8a340fe766 /src/dotty/tools/dotc/typer/Checking.scala | |
parent | 5866d0d16c79ca5c62507bdcb7d87669426e86d6 (diff) | |
download | dotty-d30f441ae986c144e739223be97b906b3bbd43dc.tar.gz dotty-d30f441ae986c144e739223be97b906b3bbd43dc.tar.bz2 dotty-d30f441ae986c144e739223be97b906b3bbd43dc.zip |
Allow general recursion in refined types.
Treat parent like refinedInfo. Introduce isBinding convenience method
in TypeBounds.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Checking.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Checking.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/typer/Checking.scala b/src/dotty/tools/dotc/typer/Checking.scala index 22d2407bc..37753fe65 100644 --- a/src/dotty/tools/dotc/typer/Checking.scala +++ b/src/dotty/tools/dotc/typer/Checking.scala @@ -172,8 +172,8 @@ object Checking { case tp: TermRef => this(tp.info) mapOver(tp) - case tp @ RefinedType(parent, name) => - tp.derivedRefinedType(this(parent), name, this(tp.refinedInfo, nestedCycleOK, nestedCycleOK)) + case tp @ RefinedType(parent, name, rinfo) => + tp.derivedRefinedType(this(parent), name, this(rinfo, nestedCycleOK, nestedCycleOK)) case tp @ TypeRef(pre, name) => try { // A prefix is interesting if it might contain (transitively) a reference |