aboutsummaryrefslogtreecommitdiff
path: root/tests/pickling
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2017-03-08 16:51:06 +0100
committerMartin Odersky <odersky@gmail.com>2017-03-08 16:52:43 +0100
commit22e9219dd46eeb3b4ba3823d6dc45bc42c41dca1 (patch)
tree7a6f87b1e615c218258666004cca2766895640a4 /tests/pickling
parentc84480960cf618c29705dbaab9332d304a081524 (diff)
downloaddotty-22e9219dd46eeb3b4ba3823d6dc45bc42c41dca1.tar.gz
dotty-22e9219dd46eeb3b4ba3823d6dc45bc42c41dca1.tar.bz2
dotty-22e9219dd46eeb3b4ba3823d6dc45bc42c41dca1.zip
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.
Diffstat (limited to 'tests/pickling')
-rw-r--r--tests/pickling/innerclass.scala3
1 files changed, 3 insertions, 0 deletions
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)
+}