diff options
author | Martin Odersky <odersky@gmail.com> | 2015-01-10 18:17:49 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-01-10 18:17:49 +0100 |
commit | 1d8c014a0a7872120df2b46e1a7e305c98f5b4c5 (patch) | |
tree | 2ff19268e81e094a619b345ec327345907d6c46e /src/dotty/tools/dotc/typer/Typer.scala | |
parent | 97aced07f273a31be69fd771a4e900a8e0cfa43a (diff) | |
download | dotty-1d8c014a0a7872120df2b46e1a7e305c98f5b4c5.tar.gz dotty-1d8c014a0a7872120df2b46e1a7e305c98f5b4c5.tar.bz2 dotty-1d8c014a0a7872120df2b46e1a7e305c98f5b4c5.zip |
Rename RefinedThis -> SkolemType
Also, make binder type of SkolemType refer to arbitrary type,
not necessarily RefinedType.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Typer.scala')
-rw-r--r-- | src/dotty/tools/dotc/typer/Typer.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Typer.scala b/src/dotty/tools/dotc/typer/Typer.scala index 0ff47b36d..9958b3b64 100644 --- a/src/dotty/tools/dotc/typer/Typer.scala +++ b/src/dotty/tools/dotc/typer/Typer.scala @@ -791,7 +791,7 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit checkRefinementNonCyclic(refinement, refineCls, seen) val rsym = refinement.symbol val rinfo = if (rsym is Accessor) rsym.info.resultType else rsym.info - RefinedType(parent, rsym.name, rt => rinfo.substThis(refineCls, RefinedThis(rt))) + RefinedType(parent, rsym.name, rt => rinfo.substThis(refineCls, SkolemType(rt))) // todo later: check that refinement is within bounds } val res = cpy.RefinedTypeTree(tree)(tpt1, refinements1) withType |