Skip to content

Run-time error when using plinged CalValue data constructor field. #2

@rdwebster

Description

@rdwebster

A run-time error occurs when running the attached code (below).
There is a data constructor field which is a plinged CalValue.
Without the pling, the code runs successfully.

The error is:
java.lang.NoSuchMethodError: org.openquark.cal_FieldPlingBugTest.TYPE_Pling_Test.(Lorg/openquark/cal/internal/runtime/lecc/RTValue;)V

The problem doesn't happen here when the lecc_source option is turned on.

The attached code:

data PlingTest =
    PlingTest
         // A run-time error occurs when creating values of this type 
         // if the field here is plinged.
         testField :: !CalValue
    ;

doPlingTest :: String;
doPlingTest = 
    (PlingTest $ toCalValue "test")
    `seq`
    "<done>";

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