Skip to content

CAL execution error: UnsupportedOperationException: Attempt to call 'f' #12

Description

@rdwebster

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions