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

Undefined function: prior #169

Closed
FrankChung opened this issue Aug 10, 2016 · 1 comment
Closed

Undefined function: prior #169

FrankChung opened this issue Aug 10, 2016 · 1 comment

Comments

@FrankChung
Copy link

I have a bolt file as follow:

path /test is Map<Test, String> {}

type Test extends String {
  validate() { prior(root) != null }
}

I got an error as:
bolt: Generating test.json...
bolt:1:1: Undefined function: prior
bolt: Could not generate JSON: 1 errors.

But if I don't put the Test type as a key of the map, it compiles correctly.

@mckoss
Copy link
Contributor

mckoss commented Aug 10, 2016

Thanks for the minimal reproducible test case! I fixed this in PR #170.

mckoss added a commit that referenced this issue Aug 10, 2016
Fix bug expanding type expression too early - Issue #169.
@mckoss mckoss closed this as completed Aug 10, 2016
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