aboutsummaryrefslogtreecommitdiff
path: root/tests/pos
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2014-03-17 18:06:58 +0100
committerTobias Schlatter <tobias@meisch.ch>2014-03-21 11:28:30 +0100
commit474b35ff0160c1174674757895e93818dc4f2f19 (patch)
tree59116d59f88ca74cacea68de71b58043a15ee03d /tests/pos
parent0a1ec31c2a17c5dd0e6bd363979cbf17a8860616 (diff)
downloaddotty-474b35ff0160c1174674757895e93818dc4f2f19.tar.gz
dotty-474b35ff0160c1174674757895e93818dc4f2f19.tar.bz2
dotty-474b35ff0160c1174674757895e93818dc4f2f19.zip
Fix of t1123 - Unit discarding
Need to do unit discarding also in selection prototypes.
Diffstat (limited to 'tests/pos')
-rw-r--r--tests/pos/t1123.scala11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/t1123.scala b/tests/pos/t1123.scala
new file mode 100644
index 000000000..e3a89c14a
--- /dev/null
+++ b/tests/pos/t1123.scala
@@ -0,0 +1,11 @@
+
+package test;
+object Test {
+ class Editor {
+ private object extraListener {
+ def h : AnyRef = extraListener
+ }
+ def f = extraListener.h
+ }
+ def main(args : Array[String]): Unit = (new Editor).f
+}