aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/core/Phases.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-06-05 22:38:01 +0200
committerMartin Odersky <odersky@gmail.com>2015-06-06 11:05:27 +0200
commit0ee8e506dac87bae6ec432b2cd277109df872145 (patch)
tree1a916c66c738c9005b534ed2efe48c382ccaa031 /src/dotty/tools/dotc/core/Phases.scala
parent84bf5902dba61c88f1b50229bb3afa5a335ded94 (diff)
downloaddotty-0ee8e506dac87bae6ec432b2cd277109df872145.tar.gz
dotty-0ee8e506dac87bae6ec432b2cd277109df872145.tar.bz2
dotty-0ee8e506dac87bae6ec432b2cd277109df872145.zip
Skolemize unstable prefixes in asSeenFrom
Skolemize unstable prefixes in asSeenFrom provided - the prefix appears at least once in non-variant or contra-variant position - we are in phase typer. After typer, we have already established soundness, so there's no need to do skolemization again. We can simply do the (otherwise unsound) substitution from this-type to prefix.
Diffstat (limited to 'src/dotty/tools/dotc/core/Phases.scala')
-rw-r--r--src/dotty/tools/dotc/core/Phases.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dotty/tools/dotc/core/Phases.scala b/src/dotty/tools/dotc/core/Phases.scala
index 0ec3320bb..b086308a2 100644
--- a/src/dotty/tools/dotc/core/Phases.scala
+++ b/src/dotty/tools/dotc/core/Phases.scala
@@ -285,6 +285,9 @@ object Phases {
*/
def relaxedTyping: Boolean = false
+ /** Overridden by FrontEnd */
+ def isTyper = false
+
def exists: Boolean = true
private var myPeriod: Period = Periods.InvalidPeriod