7892bbf38f ^
1 2 3 4 5 6 7 8 9 10 11 12
class C { def foo: Unit = {StaticInit.fld} } object Test extends App { try { new C().foo sys.error("StaticInit.<clinit> was not run!") } catch { case t: ExceptionInInitializerError => } }