summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/compiler/scala/tools/nsc/settings/MutableSettings.scala4
-rw-r--r--test/files/pos/bug3495.flags1
-rw-r--r--test/files/pos/bug3495.scala2
3 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala
index e8443d11c1..1e0e00e01d 100644
--- a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala
+++ b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala
@@ -143,11 +143,11 @@ class MutableSettings(val errorFn: String => Unit) extends AbsSettings with Scal
//
// Internally we use Option[List[String]] to discover error,
// but the outside expects our arguments back unchanged on failure
- if (arg contains ":") parseColonArg(arg) match {
+ if (isPropertyArg(arg)) parsePropertyArg(arg) match {
case Some(_) => rest
case None => args
}
- else if (isPropertyArg(arg)) parsePropertyArg(arg) match {
+ else if (arg contains ":") parseColonArg(arg) match {
case Some(_) => rest
case None => args
}
diff --git a/test/files/pos/bug3495.flags b/test/files/pos/bug3495.flags
new file mode 100644
index 0000000000..08de722af0
--- /dev/null
+++ b/test/files/pos/bug3495.flags
@@ -0,0 +1 @@
+-Dsoot.class.path=bin:.
diff --git a/test/files/pos/bug3495.scala b/test/files/pos/bug3495.scala
new file mode 100644
index 0000000000..8d5dff4302
--- /dev/null
+++ b/test/files/pos/bug3495.scala
@@ -0,0 +1,2 @@
+class Foo { }
+