aboutsummaryrefslogtreecommitdiff
path: root/tests/pickling
diff options
context:
space:
mode:
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
+}