Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SimonCockx opened this issue May 9, 2023 · 1 comment
Open

Comments

@SimonCockx
Copy link

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.

@LorenzoBettini
Copy link
Contributor

Thanks for the detailed report.
I'll try to have a look at it ASAP.
Of course, if you want to try to provide a PR (possibly with a test reproducing the problem)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants