From e1a262cbc87abd05184af6c3be0ab17abb1ec09e Mon Sep 17 00:00:00 2001 From: rytz Date: Fri, 9 May 2008 14:20:54 +0000 Subject: [PATCH] changed copying of .net / jvm14 libraries. merged List change of r14964 to dotnet-library git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@14973 5e8d7ff9-d8ef-0310-90f0-a4852d11357a --- build.xml | 6 +++-- src/build/four.xml | 32 +++++++++++++++++++----- src/build/msil.xml | 38 ++++++++++++++++++++++------- src/dotnet-library/scala/List.scala | 2 +- 4 files changed, 60 insertions(+), 18 deletions(-) diff --git a/build.xml b/build.xml index 329648267..e3fc55e28 100644 --- a/build.xml +++ b/build.xml @@ -1015,11 +1015,13 @@ FORWARDED TARGETS FOR PACKAGING - + + - + + diff --git a/src/build/four.xml b/src/build/four.xml index 6e3112420..6dd92f34f 100644 --- a/src/build/four.xml +++ b/src/build/four.xml @@ -21,17 +21,37 @@ PROPERTIES - + - + + - - - - + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/build/msil.xml b/src/build/msil.xml index 916790830..a5e179e57 100644 --- a/src/build/msil.xml +++ b/src/build/msil.xml @@ -6,11 +6,12 @@ SuperSabbus extension for the MSIL library targeted for the dotnet framework. THIS FILE IS NOT STAND-ALONE AND SHOULD ONLY BE USED THROUGH ENTRY POINTS IN SUPERSABBUS. - - - + + + - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -113,8 +134,7 @@ MSIL BUILD srcdir="${build-msil-src.dir}" destdir="${build-msil.dir}/library" target="msil" - assemname="predef" assemrefs="${lib.dir}" - failonerror="false"> + assemname="predef" assemrefs="${lib.dir}"> diff --git a/src/dotnet-library/scala/List.scala b/src/dotnet-library/scala/List.scala index deaf812a6..c55ea1c38 100644 --- a/src/dotnet-library/scala/List.scala +++ b/src/dotnet-library/scala/List.scala @@ -450,7 +450,7 @@ sealed abstract class List[+A] extends Seq[A] { * @param x the element to append. * @return the list with x added at the end. */ - def +[B >: A](x: B): List[B] = + override def +[B >: A](x: B): List[B] = if (isEmpty) List(x) else { val buf = new ListBuffer[B]