class Oops { init() { fun f() { print "not a method"; } this.field = f; } } var oops = Oops(); oops.field();