blob: 838114f6a7ebb1d09e9061d82e12b0e1a79e9a9e (
plain) (
blame)
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 =>
}
}
|