aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/typer/Mode.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-01-15 10:26:46 +0100
committerMartin Odersky <odersky@gmail.com>2014-01-15 10:27:13 +0100
commit79aadfe04c4b3aaae4f56ea6a35c7cac61c4af77 (patch)
tree4c986a8b5a03ff601648f39c2c2df300cf602574 /src/dotty/tools/dotc/typer/Mode.scala
parentde53428d957c07333aa765e826fdbb4022229d2d (diff)
downloaddotty-79aadfe04c4b3aaae4f56ea6a35c7cac61c4af77.tar.gz
dotty-79aadfe04c4b3aaae4f56ea6a35c7cac61c4af77.tar.bz2
dotty-79aadfe04c4b3aaae4f56ea6a35c7cac61c4af77.zip
Treat "this" specially when it appears in a parent constructor
In this case its owner is the next outer class, not the currently defined one.
Diffstat (limited to 'src/dotty/tools/dotc/typer/Mode.scala')
-rw-r--r--src/dotty/tools/dotc/typer/Mode.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dotty/tools/dotc/typer/Mode.scala b/src/dotty/tools/dotc/typer/Mode.scala
index 65afbd7c8..55baa6bc5 100644
--- a/src/dotty/tools/dotc/typer/Mode.scala
+++ b/src/dotty/tools/dotc/typer/Mode.scala
@@ -29,9 +29,10 @@ object Mode {
val Type = newMode(1, "Type")
val ImplicitsEnabled = newMode(2, "ImplicitsEnabled")
- val InferringReturnType = newMode(3, "InferencingReturnType")
+ val InferringReturnType = newMode(3, "InferringReturnType")
val TypevarsMissContext = newMode(4, "TypevarsMissContext")
+ val InSuperCall = newMode(5, "InSuperCall")
val PatternOrType = Pattern | Type
} \ No newline at end of file