aboutsummaryrefslogblamecommitdiff
path: root/tests/run/t629.scala
blob: 67baead5f16a4245b61f3e364e15fd4474055757 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                                     
object Test
{
    def main(args : Array[String]) : Unit = Console.println(new C(1))
}

abstract class A(val x : Int)

class C(x : Int) extends A(x)
{
  override def toString() = "OK"
  val v = new D
  class D { def value = x }
}