summaryrefslogtreecommitdiff
path: root/test/files/run/t6935.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@typesafe.com>2014-01-15 14:11:08 -0800
committerAdriaan Moors <adriaan.moors@typesafe.com>2014-01-15 14:11:08 -0800
commit0e8984100709658588c67d097452b8606c12d750 (patch)
treeb2fb27d6fc66320947de6d30a22a9d4d4d03e651 /test/files/run/t6935.scala
parenta7de84d24aafb554019ebebff36a18c966568a30 (diff)
parentc5567e2700dfe6c19d968c2285821ef4ab8a8e6c (diff)
downloadscala-0e8984100709658588c67d097452b8606c12d750.tar.gz
scala-0e8984100709658588c67d097452b8606c12d750.tar.bz2
scala-0e8984100709658588c67d097452b8606c12d750.zip
Merge pull request #3260 from soc/SI-8035
Deprecate automatic () insertion in argument lists
Diffstat (limited to 'test/files/run/t6935.scala')
-rw-r--r--test/files/run/t6935.scala18
1 files changed, 9 insertions, 9 deletions
diff --git a/test/files/run/t6935.scala b/test/files/run/t6935.scala
index dea2d7f2e2..fdaf02e5ce 100644
--- a/test/files/run/t6935.scala
+++ b/test/files/run/t6935.scala
@@ -1,14 +1,14 @@
object Test {
def main(args: Array[String]): Unit = {
- import java.io._
- val bytes = new ByteArrayOutputStream()
- val out = new ObjectOutputStream(bytes)
- out.writeObject(())
- out.close()
- val buf = bytes.toByteArray
- val in = new ObjectInputStream(new ByteArrayInputStream(buf))
- val unit = in.readObject()
- assert(unit == ())
+ import java.io._
+ val bytes = new ByteArrayOutputStream()
+ val out = new ObjectOutputStream(bytes)
+ out.writeObject(())
+ out.close()
+ val buf = bytes.toByteArray
+ val in = new ObjectInputStream(new ByteArrayInputStream(buf))
+ val unit = in.readObject()
+ assert(unit == ())
}
}