KT-2334 An error 'local function without body' is not reported
 #KT-2334 Fixed