diff options
author | Paul Phillips <paulp@improving.org> | 2013-01-26 13:39:09 -0800 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2013-01-26 13:40:09 -0800 |
commit | a24fd59f7b1a271d918623a49562cc728547045f (patch) | |
tree | 1cc3241f6edcb4d897fa2eea684c7d5e1215dca2 /test/files/pos | |
parent | 74a8ef9c24246c54ffe6236ef156d20d3e1c3f27 (diff) | |
parent | 2580a51bbaccb31ad88679874d6ad626f8d4491c (diff) | |
download | scala-a24fd59f7b1a271d918623a49562cc728547045f.tar.gz scala-a24fd59f7b1a271d918623a49562cc728547045f.tar.bz2 scala-a24fd59f7b1a271d918623a49562cc728547045f.zip |
Merge pull request #1864 from retronym/ticket/4859-6
SI-4859 Step back from mis-optimizations in qualifiers
Diffstat (limited to 'test/files/pos')
-rw-r--r-- | test/files/pos/t4859.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/files/pos/t4859.scala b/test/files/pos/t4859.scala new file mode 100644 index 0000000000..284a39b7ab --- /dev/null +++ b/test/files/pos/t4859.scala @@ -0,0 +1,17 @@ +object O { + // error: C is not a legal prefix for a constructor + C().CC() + // but this works. + D().DD() +} + +case class C() { + case class CC() +} + +case class D() { + class DD() + object DD { + def apply() = new DD() + } +} |