diff options
author | Martin Odersky <odersky@gmail.com> | 2014-01-15 10:26:46 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-01-15 10:27:13 +0100 |
commit | 79aadfe04c4b3aaae4f56ea6a35c7cac61c4af77 (patch) | |
tree | 4c986a8b5a03ff601648f39c2c2df300cf602574 /src/dotty/tools/dotc/typer/Mode.scala | |
parent | de53428d957c07333aa765e826fdbb4022229d2d (diff) | |
download | dotty-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.scala | 3 |
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 |