aboutsummaryrefslogtreecommitdiff
path: root/tests/pickling
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2016-11-18 00:17:49 +0100
committerGuillaume Martres <smarter@ubuntu.com>2016-11-22 01:35:08 +0100
commit1dee5b6341a7986c298f1251257f629bd4340067 (patch)
tree446bfccdb665c7f13b98b79f11e80669f9e83e02 /tests/pickling
parentd3a4916b4f04e89a6fd850206f92bbffa8cce14e (diff)
downloaddotty-1dee5b6341a7986c298f1251257f629bd4340067.tar.gz
dotty-1dee5b6341a7986c298f1251257f629bd4340067.tar.bz2
dotty-1dee5b6341a7986c298f1251257f629bd4340067.zip
checkNoPrivateLeaks is now also done in TreeUnpickler
This could be abstracted better but we'll end up replacing checkNoPrivateLeaks soon anyway due to https://github.com/lampepfl/dotty/issues/1723
Diffstat (limited to 'tests/pickling')
-rw-r--r--tests/pickling/private-leak.scala9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/pickling/private-leak.scala b/tests/pickling/private-leak.scala
new file mode 100644
index 000000000..3fc32b519
--- /dev/null
+++ b/tests/pickling/private-leak.scala
@@ -0,0 +1,9 @@
+package private_leak
+
+class Test {
+ private type Foo = Int
+
+ val x: Foo = 1
+
+ x // unpickled with type Foo
+}