go-jsonnet/testdata/recursive_thunk.golden
Dave Cunningham b6ee2c2f51
String token end location off-by-one error (#139)
* String token end location off-by-one error
2017-11-03 21:36:31 -04:00

48 lines
1.3 KiB
Plaintext

RUNTIME ERROR: xxx
-------------------------------------------------
testdata/recursive_thunk:1:35-46 function <bar>
local bar(th, x) = if x == 0 then error "xxx" else th;
-------------------------------------------------
testdata/recursive_thunk:2:16-38 function <foo>
local foo(x) = bar(foo(x - 1), x - 1);
-------------------------------------------------
testdata/recursive_thunk:2:20-30 thunk from <function <foo>>
local foo(x) = bar(foo(x - 1), x - 1);
-------------------------------------------------
testdata/recursive_thunk:1:52-54 function <bar>
local bar(th, x) = if x == 0 then error "xxx" else th;
-------------------------------------------------
... (skipped 1 frames)
-------------------------------------------------
testdata/recursive_thunk:2:20-30 thunk from <function <foo>>
local foo(x) = bar(foo(x - 1), x - 1);
-------------------------------------------------
testdata/recursive_thunk:1:52-54 function <bar>
local bar(th, x) = if x == 0 then error "xxx" else th;
-------------------------------------------------
testdata/recursive_thunk:2:16-38 function <foo>
local foo(x) = bar(foo(x - 1), x - 1);
-------------------------------------------------
testdata/recursive_thunk:3:1-7 $
foo(3)
-------------------------------------------------
During evaluation