summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorAntoine Gourlay <antoine@gourlay.fr>2014-10-10 10:18:00 +0200
committerAntoine Gourlay <antoine@gourlay.fr>2014-10-13 10:37:18 +0200
commit2f54eb350038c48d0f0aadc6c8793ea0ef9ff80c (patch)
treec89dcd733c8e4224205aa07da6af8d8421457122 /src/compiler
parent2b5df373638d08204b71258928289f6b39e25d5f (diff)
downloadscala-2f54eb350038c48d0f0aadc6c8793ea0ef9ff80c.tar.gz
scala-2f54eb350038c48d0f0aadc6c8793ea0ef9ff80c.tar.bz2
scala-2f54eb350038c48d0f0aadc6c8793ea0ef9ff80c.zip
SI-8711 ScalaVersion.unparse doesn't produce valid versions
There is no dot between `major.minor.rev` and `-build` in a scala version, yet that's what unparse returns for ``` // was "2.11.3.-SNAPSHOT" ScalaVersion("2.11.3-SNAPSHOT").unparse ```
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/settings/ScalaVersion.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/ScalaVersion.scala b/src/compiler/scala/tools/nsc/settings/ScalaVersion.scala
index 4f45043c5e..43bdad5882 100644
--- a/src/compiler/scala/tools/nsc/settings/ScalaVersion.scala
+++ b/src/compiler/scala/tools/nsc/settings/ScalaVersion.scala
@@ -34,7 +34,7 @@ case object NoScalaVersion extends ScalaVersion {
* to segregate builds
*/
case class SpecificScalaVersion(major: Int, minor: Int, rev: Int, build: ScalaBuild) extends ScalaVersion {
- def unparse = s"${major}.${minor}.${rev}.${build.unparse}"
+ def unparse = s"${major}.${minor}.${rev}${build.unparse}"
def compare(that: ScalaVersion): Int = that match {
case SpecificScalaVersion(thatMajor, thatMinor, thatRev, thatBuild) =>