summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2013-10-29 22:39:55 +0100
committerJason Zaugg <jzaugg@gmail.com>2014-01-31 21:45:50 +0100
commit9da3710c55ff600a352d52e25b87d024511e4f1a (patch)
tree45e97b6c1edd5a6debe2232075ec2d7b0435f947 /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent36a10f0da6c5394e4a74e181211edbe2ec5afa17 (diff)
downloadscala-9da3710c55ff600a352d52e25b87d024511e4f1a.tar.gz
scala-9da3710c55ff600a352d52e25b87d024511e4f1a.tar.bz2
scala-9da3710c55ff600a352d52e25b87d024511e4f1a.zip
Typers#stabilize is a noop in erasure's typer.
Anything we can do to make erasure faster.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 9776b1e80e..d55192aa54 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -579,7 +579,8 @@ trait Typers extends Adaptations with Tags with TypersTracking with PatternTyper
* 3. Turn tree type into stable type if possible and required by context.
* 4. Give getClass calls a more precise type based on the type of the target of the call.
*/
- private def stabilize(tree: Tree, pre: Type, mode: Mode, pt: Type): Tree = {
+ protected def stabilize(tree: Tree, pre: Type, mode: Mode, pt: Type): Tree = {
+
// Side effect time! Don't be an idiot like me and think you
// can move "val sym = tree.symbol" before this line, because
// inferExprAlternative side-effects the tree's symbol.