function fun ()
  function subfun ()
    'this is subfun'
  end
  exist ('subfun')
  type subfun
end
