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}'
The expression
gives the error
The error is misleading. The cause is that I should have written
scott.emp
rather thanscott.emps
. Morel knows thatscott
has fieldsbonus
,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: