From 79aadfe04c4b3aaae4f56ea6a35c7cac61c4af77 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 15 Jan 2014 10:26:46 +0100 Subject: 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. --- src/dotty/tools/dotc/typer/Mode.scala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/dotty/tools/dotc/typer/Mode.scala') 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 -- cgit v1.2.3