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

Morel gives unhelpful "unresolved flex record" error #175

Open
julianhyde opened this issue Sep 16, 2022 · 0 comments
Open

Morel gives unhelpful "unresolved flex record" error #175

julianhyde opened this issue Sep 16, 2022 · 0 comments

Comments

@julianhyde
Copy link
Collaborator

The expression

from e in scott.emps yield e.ename

gives the error

unresolved flex record (can't tell what fields there are besides #ename)

The error is misleading. The cause is that I should have written scott.emp rather than scott.emps. Morel knows that scott has fields bonus, emp, dept, salgrade so should have been able to give a more specific error.

And in fact it can do so if you use scott in a different way:

- scott.emps;
no field 'emps' in type '{bonus:{comm:real, ename:string, job:string, sal:real} list, dept:{deptno:int, dname:string, loc:string} list, emp:{comm:real, deptno:int, empno:int, ename:string, hiredate:string, job:string, mgr:int, sal:real} list, salgrade:{grade:int, hisal:real, losal:real} list}'
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

1 participant