class A { val field = foo() fun foo(): Int { return 1 } }