aboutsummaryrefslogtreecommitdiff
path: root/tests/new
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2015-04-22 16:21:14 +0200
committerMartin Odersky <odersky@gmail.com>2015-04-22 17:19:35 +0200
commit1d56a547b56b2c82bf70d8701a077c13ffb7f80d (patch)
tree7bb9ab295a7672c6dfdd3461d3418490d0b00cb9 /tests/new
parenta884556d910b333f6d550ef7624c100d476862b7 (diff)
downloaddotty-1d56a547b56b2c82bf70d8701a077c13ffb7f80d.tar.gz
dotty-1d56a547b56b2c82bf70d8701a077c13ffb7f80d.tar.bz2
dotty-1d56a547b56b2c82bf70d8701a077c13ffb7f80d.zip
Unpickle Imports
Was missing before. Needed a tweak in PlainPrinter for printing import symbol references (their denotation is not current after pickling, so they would have printed differently after and before pickling).
Diffstat (limited to 'tests/new')
-rw-r--r--tests/new/test.scala12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/new/test.scala b/tests/new/test.scala
new file mode 100644
index 000000000..5d2bc0ff5
--- /dev/null
+++ b/tests/new/test.scala
@@ -0,0 +1,12 @@
+trait T {
+ object O
+}
+
+class C extends T
+
+object Test {
+
+ val c = new C
+ c.O
+
+}