diff options
author | Paul Phillips <paulp@improving.org> | 2009-10-25 06:00:59 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2009-10-25 06:00:59 +0000 |
commit | 728775440ccd67928c25914a1e003ff9765ad80b (patch) | |
tree | bc0d55939eb9ed99cd869dc5a9dbbc1f7b4c4555 /src/compiler/scala/tools/nsc/interactive/ContextTrees.scala | |
parent | 2cef1c58a54c996243fb85630cce841073c18650 (diff) | |
download | scala-728775440ccd67928c25914a1e003ff9765ad80b.tar.gz scala-728775440ccd67928c25914a1e003ff9765ad80b.tar.bz2 scala-728775440ccd67928c25914a1e003ff9765ad80b.zip |
Deprecation patrol.
compile scalac with -deprecation and not cause any machines to catch
fire. Most of the remaining warnings are glancing furtively at Tuple2,
waiting for the moment to pounce.
Diffstat (limited to 'src/compiler/scala/tools/nsc/interactive/ContextTrees.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/interactive/ContextTrees.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/interactive/ContextTrees.scala b/src/compiler/scala/tools/nsc/interactive/ContextTrees.scala index 1239ae514a..af50e4e468 100644 --- a/src/compiler/scala/tools/nsc/interactive/ContextTrees.scala +++ b/src/compiler/scala/tools/nsc/interactive/ContextTrees.scala @@ -93,7 +93,7 @@ trait ContextTrees { self: Global => else if (contexts(hi).pos properlyIncludes cpos) // fast path w/o search addContext(contexts(hi).children, context, cpos) else if (cpos precedes contexts(0).pos) - new ContextTree(cpos, context) +: contexts + new ContextTree(cpos, context) +=: contexts else { def insertAt(idx: Int): Boolean = { val oldpos = contexts(idx).pos |