Skip to content

Cached auxiliary: RuleEnvironment cannot be resolved to a type #178

@SimonCockx

Description

@SimonCockx

Reproducer:

system com.regnosys.rosetta.typing.Test

auxiliary {
	test(Boolean param) cached
}

auxiliary test(Boolean param) {
	param
}

The generated code contains the following method:

protected Boolean testInternal(final RuleApplicationTrace _trace_, final Boolean param) {
    return getFromCache("testInternal", (RuleEnvironment)null, _trace_, ...);

... but the class RuleEnvironment isn't imported.

This issue goes away if RuleEnvironment is imported for something else, e.g., for a judgement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions