diff options
author | Martin Odersky <odersky@gmail.com> | 2014-07-01 14:43:18 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2014-07-17 11:01:59 +0200 |
commit | 3ab2784948d084557e88cd7eb5c55a29613742d0 (patch) | |
tree | 62ce5b62fc08afc070e9e705687e9fa05a6e1947 /tests/pos | |
parent | 8112a39d3a00f53a68af794d0a83cf995faf31e2 (diff) | |
download | dotty-3ab2784948d084557e88cd7eb5c55a29613742d0.tar.gz dotty-3ab2784948d084557e88cd7eb5c55a29613742d0.tar.bz2 dotty-3ab2784948d084557e88cd7eb5c55a29613742d0.zip |
Added phase: SuperAccessors
Rewrote SuperAccessors (more to be done; see comments), and
added stuff here and there to make it work smoother.
Diffstat (limited to 'tests/pos')
-rw-r--r-- | tests/pos/paramAliases.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pos/paramAliases.scala b/tests/pos/paramAliases.scala new file mode 100644 index 000000000..e7787864a --- /dev/null +++ b/tests/pos/paramAliases.scala @@ -0,0 +1,11 @@ +// This tests that the subclass parameter is not +// translated to a field, but is forwarded to the +// superclass parameter. Right now we need to verify +// this by inspecting the output with -Xprint:super +// TODO: Make a test that does this automatically. +class Base(val x: Int) + +class Sub(x: Int) extends Base(x) { + println(x) +} + |