aboutsummaryrefslogtreecommitdiffstats
path: root/test-files/mds-kbdc/validate-tree/invalid/function-function
blob: 4793bbc33be6b15e1b61b07ec338f7733f477326 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function f/0
  function g/0
  end function
end function

# (function (@ 1 0-8) ‘f/0’
#   (.inner
#     (function (@ 2 2-10) ‘g/0’
#       (.inner nil)
#     )
#   )
# )
# :2:2–10: error: nested function definition
#    function g/0
#    ^^^^^^^^
# :1:0–8: note: outer function defined here
#  function f/0
#  ^^^^^^^^