Minor change to get closer to building under -Xexperimental.
git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@25945 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
parent
01ec69f9ba
commit
17dcf294b2
|
|
@ -17,7 +17,6 @@ import scala.collection.Iterator
|
|||
* @author Burak Emir <bqe@google.com>
|
||||
*/
|
||||
object MetaData {
|
||||
|
||||
/**
|
||||
* appends all attributes from new_tail to attribs, without attempting to
|
||||
* detect or remove duplicates. The method guarantees that all attributes
|
||||
|
|
@ -26,8 +25,8 @@ object MetaData {
|
|||
*
|
||||
* Duplicates can be removed with `normalize`.
|
||||
*/
|
||||
@tailrec
|
||||
def concatenate(attribs: MetaData, new_tail: MetaData): MetaData =
|
||||
@tailrec // temporarily marked final so it will compile under -Xexperimental
|
||||
final def concatenate(attribs: MetaData, new_tail: MetaData): MetaData =
|
||||
if (attribs eq Null) new_tail
|
||||
else concatenate(attribs.next, attribs copy new_tail)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue