aboutsummaryrefslogtreecommitdiff
path: root/tests/pickling/traits.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-03-08 22:02:22 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-03-18 11:16:37 +0100
commit5962a931c83622ce065bc1ce9add049ade89bfcf (patch)
tree24851bbc76f1ca537456715c44a9f866a5c00668 /tests/pickling/traits.scala
parent19bfc0c6c9be9c4c3fdca55480e01e980a493b42 (diff)
downloaddotty-5962a931c83622ce065bc1ce9add049ade89bfcf.tar.gz
dotty-5962a931c83622ce065bc1ce9add049ade89bfcf.tar.bz2
dotty-5962a931c83622ce065bc1ce9add049ade89bfcf.zip
Pickling test reorg
Move pickling tests into separate top-level test directory. That way they are not needlessly pos-tested before. Also, disable core tests for now - after rebasing we get a stale symbol error. Need to investigate that.
Diffstat (limited to 'tests/pickling/traits.scala')
-rw-r--r--tests/pickling/traits.scala27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/pickling/traits.scala b/tests/pickling/traits.scala
new file mode 100644
index 000000000..e93ebc46b
--- /dev/null
+++ b/tests/pickling/traits.scala
@@ -0,0 +1,27 @@
+package traits
+
+trait B extends Object {
+
+ val z: Int
+
+}
+
+trait T extends B {
+
+ var x = 2
+
+ private var xp = 2
+
+ val y = 3
+
+ private val yp = 3
+
+ val z = 4
+
+ x = 4
+
+ xp = 4
+
+}
+
+class C extends T