1 2 3 4 5 6
// -*- mode: java; -*- val _fcn = { -> arg ? { int x -> x+1; } : { int x -> x-1; }; }; // Refer to child B is OK because last field of A has been initialized _fcn()(B.x);