From 22e9219dd46eeb3b4ba3823d6dc45bc42c41dca1 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Wed, 8 Mar 2017 16:51:06 +0100 Subject: Fix #2067: Compute defKind at Typer, not Namer It's hard to predict for defKind all the desugarings that can be applied to a definition. Better to do it once the desugarings have been applied. NoInit and PureInterface are both tested only after Typer, so it's OK to delay their initialization until regular Typer. --- tests/pickling/innerclass.scala | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/pickling/innerclass.scala (limited to 'tests/pickling') diff --git a/tests/pickling/innerclass.scala b/tests/pickling/innerclass.scala new file mode 100644 index 000000000..5881cf6ed --- /dev/null +++ b/tests/pickling/innerclass.scala @@ -0,0 +1,3 @@ +trait Foo { + class Inner(x: Int = 42) +} -- cgit v1.2.3