aboutsummaryrefslogblamecommitdiff
path: root/tests/pending/run/t0911.scala
blob: a0b5597d5c230b419dfb2b7c1bd6422824720134 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                  





                                                
 
                                            

                 
class Foo(val bar : () => String);

class IP extends Foo(() => baz) {
// TODO NEEDS MANUAL CHANGE (early initializers)
// BEGIN copied early initializers
val baz = "bar"
// END copied early initializers
};

object Test extends dotty.runtime.LegacyApp{
  (new IP).bar();
}