Error when executing 'runTest 2' with the following code:
Fatal Executor error.
Caused by: java.lang.UnsupportedOperationException: Attempt to call 'f' on: org.openquark.cal.internal.runtime.lecc.RTData$CAL_Int, Detail: Attempt to call 'f' on: org.openquark.cal.internal.runtime.lecc.RTData$CAL_Int
foo :: Int -> Int -> Int -> Int;
foo !a !b !c = a + b + c;
test :: Int -> [Int];
test !val =
let
someVal :: Int;
someVal =
uncurry (foo 1) (2, 3);
//foo 1 2 3; // <-- WORKS!
nextVal :: Int;
nextVal = if True then someVal else undefined;
in
someVal : test nextVal;
runTest !n = List.take n $ test 0;
Perhaps the same issue as: #10