summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorLukas Rytz <lukas.rytz@epfl.ch>2009-11-12 14:57:15 +0000
committerLukas Rytz <lukas.rytz@epfl.ch>2009-11-12 14:57:15 +0000
commit39fb348121e43dd3d48b378f43a68ed8fc5fc157 (patch)
tree7bdd060384e32f4c51903cc240fc9df5c37a4593 /src/compiler
parent5995692ffd9bd401589117b10029b63503cad6be (diff)
downloadscala-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/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
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