diff options
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) +} + |