diff options
author | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-11-12 14:57:15 +0000 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@epfl.ch> | 2009-11-12 14:57:15 +0000 |
commit | 39fb348121e43dd3d48b378f43a68ed8fc5fc157 (patch) | |
tree | 7bdd060384e32f4c51903cc240fc9df5c37a4593 /src | |
parent | 5995692ffd9bd401589117b10029b63503cad6be (diff) | |
download | scala-39fb348121e43dd3d48b378f43a68ed8fc5fc157.tar.gz scala-39fb348121e43dd3d48b378f43a68ed8fc5fc157.tar.bz2 scala-39fb348121e43dd3d48b378f43a68ed8fc5fc157.zip |
avoid illegal forward references by moving synt...
avoid illegal forward references by moving synthetics to the beginning
of the statement-list. fixes #2489
Diffstat (limited to 'src')
-rw-r--r-- | src/compiler/scala/tools/nsc/typechecker/Typers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala index 50627268c8..a7fd4f3a50 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala @@ -2054,7 +2054,7 @@ trait Typers { self: Analyzer => moreToAdd = initSize != scope.size } if (newStats.isEmpty) stats - else stats ::: newStats.toList + else newStats.toList ::: stats } val result = stats mapConserve (typedStat) if (phase.erasedTypes) result |