From 1dee5b6341a7986c298f1251257f629bd4340067 Mon Sep 17 00:00:00 2001 From: Guillaume Martres Date: Fri, 18 Nov 2016 00:17:49 +0100 Subject: 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 --- tests/pickling/private-leak.scala | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 tests/pickling/private-leak.scala (limited to 'tests/pickling') 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 +} -- cgit v1.2.3