aboutsummaryrefslogtreecommitdiff
path: root/tests/run/paramForwarding.check
diff options
context:
space:
mode:
authorGuillaume Martres <smarter@ubuntu.com>2015-05-27 20:41:41 +0200
committerGuillaume Martres <smarter@ubuntu.com>2015-05-28 02:28:27 +0200
commitbeba9703e6a8cfd9d0f541c6a75125cef9eff726 (patch)
treeec9a59ad7d78a6c3d62c4be10eedd84e3773acfd /tests/run/paramForwarding.check
parentc0b693060c666f66cc5f26462e95f74b68975f31 (diff)
downloaddotty-beba9703e6a8cfd9d0f541c6a75125cef9eff726.tar.gz
dotty-beba9703e6a8cfd9d0f541c6a75125cef9eff726.tar.bz2
dotty-beba9703e6a8cfd9d0f541c6a75125cef9eff726.zip
ParamForwarding: do not require param accessors to be private[this]
Also mark the forwarder as Stable otherwise we get a RefChecks error. This fixes #608. Note that we do less parameter forwarding than scalac. See for example D and Y in tests/run/paramForwarding.scala which don't get their own local fields in scalac but do in dotty.
Diffstat (limited to 'tests/run/paramForwarding.check')
-rw-r--r--tests/run/paramForwarding.check16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/run/paramForwarding.check b/tests/run/paramForwarding.check
new file mode 100644
index 000000000..c004a95be
--- /dev/null
+++ b/tests/run/paramForwarding.check
@@ -0,0 +1,16 @@
+B:
+private final int B.theValue$$local
+private final int B.theValueInB$$local
+Bz:
+private final int Bz.theValue$$local
+private final int Bz.theValueInBz$$local
+C:
+
+D:
+private final int D.other$$local
+NonVal:
+
+X:
+private final int X.theValue$$local
+Y:
+private final int Y.theValue$$local