aboutsummaryrefslogtreecommitdiff
path: root/tests/pickling
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-10-29 00:26:38 +0200
committerGuillaume Martres <smarter@ubuntu.com>2016-11-22 01:35:07 +0100
commit0c8e2a38684ca4f449115d3e01db7bc3fc3393d2 (patch)
tree9a91f4115346b2e6247bfb152512c0b7f91044a4 /tests/pickling
parent5c34122645a6e3a75459de9cf381bb20ca2d67dd (diff)
downloaddotty-0c8e2a38684ca4f449115d3e01db7bc3fc3393d2.tar.gz
dotty-0c8e2a38684ca4f449115d3e01db7bc3fc3393d2.tar.bz2
dotty-0c8e2a38684ca4f449115d3e01db7bc3fc3393d2.zip
Fix pickle_pickleOK test
It failed because two files in the same package compiled at the same time defined respectively a class Test and an object Test. I'm guessing this did not fail before because failure depends on the order of the files on the command line.
Diffstat (limited to 'tests/pickling')
-rw-r--r--tests/pickling/i1202a.scala2
-rw-r--r--tests/pickling/zoo.scala2
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/pickling/i1202a.scala b/tests/pickling/i1202a.scala
index 0bc19f4e3..a8134720f 100644
--- a/tests/pickling/i1202a.scala
+++ b/tests/pickling/i1202a.scala
@@ -1,3 +1,5 @@
+package i1202a
+
class Test[T] {
def testMethod: Unit =
new Foo(this)
diff --git a/tests/pickling/zoo.scala b/tests/pickling/zoo.scala
index 02dac8f5b..e6bde86b1 100644
--- a/tests/pickling/zoo.scala
+++ b/tests/pickling/zoo.scala
@@ -1,3 +1,5 @@
+package zoo
+
object Test {
trait FoodStuff
trait Meat extends FoodStuff {