aboutsummaryrefslogblamecommitdiff
path: root/tests/pos/paramAliases.scala
blob: e7787864aee43310168597b1ccf13abc25505dbf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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)
}